Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Util

 
Kaushik Badiyani
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can somebody cite me the difference between HashMap and HashTable

Thanx
Kaushik
 
George Pincharoen
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The HashMap roughly equivalent to HashTable, except
that it is unsynchronized and permits nulls
 
Kaushik Badiyani
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
George Apart from that r there any other differences.
These are the basic ones
 
swati bannore
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is what I know-
HashMap -
1) Do Not guarantee order of map
2) It Allows NULL
3) Not Synchronized
HashTable-
1)It is Synchronized
2)Does NOT allow NULL
thx
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic