HashMap allows one null key and any number of null values. What is the use of it?
The answers so far only consider the worth of have a null key, but the question also asks about any number of null values.
The benefit of storing the value null against a key in a HashMap is the same as in databases, etc - you can record a distinction between having a value that is empty (e.g. string ""), and not having a value at all (null).