Home » JAVA Programming » Data Structures » Question
  1. What is the difference between TreeSet and SortedSet?
    1. TreeSet is an interface; SortedSet is a concrete class
    2. TreeSet is more efficient than SortedSet
    3. SortedSet is an interface; TreeSet is a concrete class
    4. SortedSet is more efficient than TreeSet
    5. None of these
Correct Option: C

SortedSet is an interface. It maintains an ordered set of elements. TreeSet is an implementation of SortedSet.



Your comments will be displayed only after manual approval.