Which class implements the Set interface and does not maintain order?

  1. TreeSet
  2. LinkedHashSet
  3. HashSet
  4. SortedSet
Correct answer HashSet

Explanation

HashSet does not maintain insertion order and allows unique elements only.

Update: Admin added a tag on this question

Topics

By Admin · · 30 views