A

Admin • 828.03K Points
Coach

Q. Which method gets the number of elements in a Set?

  • (A) getSize()
  • (B) length()
  • (C) size()
  • (D) count()
  • Correct Answer - Option(C)
  • Views: 9
  • Filed under category Java
  • Hashtags: Java Set

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.