Interview Detail

Why does HashMap allow one null key?

Collections · Intermediate

Short Answer

HashMap handles a null key as a special case. A strong answer connects this to hash/bucket implementation.