This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes Regarding HashMap & Hashtable Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Regarding HashMap & Hashtable" Watch "Regarding HashMap & Hashtable" New topic
Author

Regarding HashMap & Hashtable

susma sahoo
Greenhorn

Joined: May 22, 2008
Posts: 4
As we know as per java api hashmap can take null values but hashtable can't.So my question is why it is like this why java pepole allowed null in HashMap not in Hashtable.Is there any specific reason behind it.

Thanks
bart zagers
Ranch Hand

Joined: Feb 05, 2003
Posts: 234
Did you find this thread about this topic?
[ May 27, 2008: Message edited by: bart zagers ]
susma sahoo
Greenhorn

Joined: May 22, 2008
Posts: 4
I went through the link that you provided above.To some extend i am convinced with the answer.

Thanks for same.

Susma
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32651
    
    4
Please ask about the bits you don't understand, and we shall try our best to answer.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: Regarding HashMap & Hashtable
 
Similar Threads
HashMap and HashTable
Why hashMap Allwos one Null Keys and Multiple Null Values ? While hashtable doesnot !
HashTable and HashMap
Hashtable doesn't allow null value and HashMap allows only one null as key
Hashtable vs. HashMap