Multiple choice

Which of the following statements is/are true?

  1. TreeMap maintains the ascending order of the elements.

  2. TreeMap does not allow null keys.

  3. HashMap allows null key.

  4. There is no order of elements in the HashMap class.

  5. All of the above

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

All the statements are true.