Saturday, September 20, 2008

Whats the difference between Hashmap and Hashtable

Hastable is always synchronized.
Hashmap is by default - not synchronized- though it can be constructed as such

Hashtable doesn't allow null values. Hashmap does allow null values(Neither allows null keys)

No comments: