What is the difference between Hashtable and HashMap ?

What is the difference between Hashtable and HashMap ?

The HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls. A hashmap is not synchronized and faster than hashtable. The HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls. HashMap does not guarantee that the order of the map will 
remain constant over time. 

By:Jalees
Date:2015-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher