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.