Multiple choice

Which of the following methods cannot be invoked with the object of TreeMap constructor?

  1. descendingMap()

  2. firstEntry()

  3. floorEntry(K key)

  4. headMap(K toKey)

  5. fixedMap()

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

This is the correct answer. There is no method named FixedMap() in TreeMap class. So, this method cannot be invoked from Object of TreeMap class. So, this answer is correct.