Multiple choice

Which of the following statements is/are true?

  1. TreeMap is the class of Map interface.

  2. HashMap inherits SortedMap interface.

  3. HashMap is not synchronised.

  4. Only (1) and (3) are true.

  5. (1), (2) and (3) all are true.

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

Yes, both the statements are true.