Multiple choice

Which of the following statement(s) is/are not true?

  1. A TreeSet class maintains the ascending order of the elements.

  2. ArrayList class provides random access of the elements.

  3. ArrayList is not synchronized.

  4. HashMap class can not have any null key.

  5. None of the above

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

This is not a true statement, as HashMap class can have one null key and multiple null values.