Can a hashmap have multiple null keys?
Anonymous
No. HashMap is allowed to have only 1 null. If you try to add a second entry with null key, instead of a new entry the previous entry gets updated, i.e., the value is overwritten.
Check out your Company Bowl for anonymous work chats.