Which method gets the number of elements in a Set?

  1. getSize()
  2. length()
  3. size()
  4. count()
Correct answer size()

Explanation

`size()` returns the number of elements in the Set.

Update: Admin added a tag on this question

Topics

By Admin · · 27 views