• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HashMap & Hashtable

 
shashank hiwarkar1
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody help me out in clarifying my doubts in Hashtable and HashMap classes?
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I'm not sure what your doubts ARE, but if you are asking what the difference is - the HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls.
 
Faisal Arif
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HashTable has been retrofitted to implement the Map interface, so use Hashmap instead of Hashtable
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic