Why did Java decide to allow "null" as a key in HashMap? Since we know that hashcode () cannot be calculated by a zero value. Is there any design consideration for this solution to allow a null key in a HashMap that is not in the Hashtable (other than accounting as the default)?
source
share