Multiple choice

Which of the following methods in SortedMap interface returns the invoking sorted maps comparator?

  1. comparator()

  2. firstKey()

  3. headMap()

  4. none of these

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

This method in SortedMap interface returns the invoking sorted maps comparator.