Mastercard interview question

Can you store null as key or value in Hashmap

Interview Answers

Anonymous

11 Aug 2018

Yes

Anonymous

14 Oct 2018

Yes, there can be max one null key allowed in HashMap. However, There can be multiple null values in HashMap.