Multiple choice

What does entrySet() method in the Map class in java collection framework do?

  1. It returns the set containing the entries in the map.

  2. It returns the set containing the keys in the map.

  3. It returns the set containing the values of the keys in the map.

  4. This method is not defined in the map class.

  5. None of the above

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

This is a true statement about entrySet() method.