A

Admin • 828.03K Points
Coach

Q. What does the `size()` method of a Set return?

  • (A) Total memory used
  • (B) Number of duplicate elements
  • (C) Number of elements in the Set
  • (D) Remaining capacity
  • Correct Answer - Option(C)
  • Views: 10
  • Filed under category Java
  • Hashtags: Java Set

Explanation by: Admin
`size()` returns the number of elements currently present in the Set.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.