Which collection type implements both Set and SortedSet?

  1. TreeSet
  2. HashSet
  3. ArrayList
  4. Vector
Correct answer TreeSet

Explanation

TreeSet implements the SortedSet interface.

Update: Admin added a tag on this question

Topics

By Admin · · 27 views