Multiple choice technology programming languages

Which interface does TreeMap class implement ?

  1. Set

  2. SortedSet

  3. List

  4. Tree

  5. SortedMap

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

TreeMap is a Map implementation that maintains its keys in sorted order. It implements the SortedMap interface (and NavigableMap which extends SortedMap). It does NOT implement Set, SortedSet, List, or a 'Tree' interface.