• Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference b/w HashTable and HashMap  RSS feed

 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please tell me all differences b/w a HashTable and HashMap
**Plz also tell the situations in which each one of them should be used.
 
naveen gupta
Ranch Hand
Posts: 129
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
did you read the api docs?
http://java.sun.com/j2se/1.5.0/docs/api/java/util/HashMap.html


line 2
"(The HashMap class is roughly equivalent to Hashtable, except that it is
unsynchronized and permits nulls.)"
 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx a lot,
Both link were helpful to me.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!