Multiple choice

Which of the following is true about Map.Entry interface?

  1. It stores the elements in a sequence.

  2. This interface defines the methods by which you can group the elements in a collection of objects.

  3. It extends Map interface so that the keys are maintained in ascending order.

  4. It describes an element in the form of key-value pair in a map. This is an inner class of Map interface.

  5. This interface does not allow duplicate interface.

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

This statement is true about Map.Entry interface.