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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "HashMap & Hashtable" Watch "HashMap & Hashtable" New topic

HashMap & Hashtable

shashank hiwarkar1

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

Cindy Glass
"The Hood"

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

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:
subject: HashMap & Hashtable
It's not a secret anymore!