Multiple choice

Which of the following methods can be invoked from the object of TreeMap constructor?

  1. higherEntry(K key)

  2. pollLastEntry()

  3. descendingKeySet()

  4. Both (1) and (3)

  5. All of the above

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

As explained, all the methods can be invoked from the TreeMap object. So, this answer is correct.