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 Red-Black tree-based NavigableMap implementation. It implements the SortedMap interface (which extends NavigableMap), which provides guaranteed ordering based on natural ordering or a custom comparator. It does not implement Set, List, or Tree (Tree is not a standard Java collection interface).