File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Difference b/w HashTable and HashMap Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Difference b/w HashTable and HashMap" Watch "Difference b/w HashTable and HashMap" New topic
Author

Difference b/w HashTable and HashMap

Raj Kumar Bindal
Ranch Hand

Joined: Apr 15, 2006
Posts: 407
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

Joined: Apr 12, 2006
Posts: 129
http://www.informit.com/guides/content.asp?g=java&seqNum=95
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
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

Joined: Apr 15, 2006
Posts: 407
Thanx a lot,
Both link were helpful to me.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Difference b/w HashTable and HashMap
 
Similar Threads
what's the difference between hashtable and hashMap
Can't develop logic
Hashtable doent allow null values ???
Hashtables are synchronized...
HashMap or HashTable