-
What is the difference between TreeSet and SortedSet?
-
- TreeSet is an interface; SortedSet is a concrete class
- TreeSet is more efficient than SortedSet
- SortedSet is an interface; TreeSet is a concrete class
- SortedSet is more efficient than TreeSet
- None of these
Correct Option: C
SortedSet is an interface. It maintains an ordered set of elements. TreeSet is an implementation of SortedSet.