Multiple choice technology programming languages

TreeMap class is used to implement which collection interface. Select the one correct answer

  1. SortedMap

  2. Tree

  3. Set

  4. SortedSet

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

TreeMap implements the SortedMap interface (now NavigableMap in newer Java versions). It maintains keys in sorted order. It does not implement Tree (not a standard interface), Set, or SortedSet.