A

Admin • 828.43K Points
Coach

Q. Which method checks if a Set is empty?

  • (A) isAvailable()
  • (B) empty()
  • (C) isEmpty()
  • (D) hasElements()
  • Correct Answer - Option(C)
  • Views: 12
  • Filed under category Java
  • Hashtags: Java Set

Explanation by: Admin
`isEmpty()` checks whether the Set contains any elements.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.