Multiple choice

Which of the following methods, declared by Map interface, returns a Set that contains the entries in the Map interface?

  1. containsKey()

  2. containsValue()

  3. entrySet()

  4. none of these

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

This method declared by Map interface, returns a Set that contains the entries in the Map interface.