HashMap allows one null key.

Practice this question from Quiz: Collection Comparisons, with options and an explanation.

Question

HashMap allows one null key.

Option A — Correct answer

True

Hashtable is synchronized and legacy; HashMap is the common non-synchronized choice.

Option B

False

Hashtable is synchronized and legacy; HashMap is the common non-synchronized choice.

Quiz: Collection Comparisons

All questions · Previous question · Next question

Open on QuizMaker