Multiple choice

Which of the following is not true about TreeMap class in java?

  1. It sorts the element in ascending order.

  2. It can have null key.

  3. It can not have any null keys.

  4. It extends AbstractMap class.

  5. None of the above

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

It does not allows any null key but can have multiple null values.