Two Laptop Bag*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes HashMap & Hashtable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "HashMap & Hashtable" Watch "HashMap & Hashtable" New topic
Author

HashMap & Hashtable

shashank hiwarkar1
Greenhorn

Joined: Feb 11, 2001
Posts: 25
Can anybody help me out in clarifying my doubts in Hashtable and HashMap classes?


shashank
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
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.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Faisal Arif
Greenhorn

Joined: Feb 05, 2001
Posts: 7
HashTable has been retrofitted to implement the Map interface, so use Hashmap instead of Hashtable
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HashMap & Hashtable