Multiple choice

Which of the following methods are not present in Map interface?

  1. putAll(map : m)

  2. Get(key : K)

  3. isEmpty()

  4. removeLast()

  5. Put(key : K, Value : V)

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

This is incorrect, as removeLast()method is not present in the map interface, it is present in LinkedList class.This method removes the last element from the list.