• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why hashMap Allwos one Null Keys and Multiple Null Values ? While hashtable doesnot !  RSS feed

 
Prabhat Ranjan
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Why hashMap Allwos one Null Keys and Multiple Null Values ? While hashtable doesnot !


why the designer of java designed in such a way ?

Regards,
Prabhat
 
Campbell Ritchie
Marshal
Posts: 56540
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Somebody obviously wanted a Map which copes with nulls. Why else?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!