Multiple choice technology programming languages

HashMap permits null values and only one null key.

  1. True

  2. False

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

HashMap in Java allows null values and permits exactly one null key. If you try to put a second null key, it will overwrite the previous entry. This behavior is by design and is well-documented. The statement is accurate.