What are the differences between a HashMap and a Hashtable in Java?
Which is more efficient for non-threaded applications?
Hashtable is synchronized, whereas HashMap isn't. That makes Hashtable slower than Hashmap.
Hashtable
HashMap
Hashmap
For single thread applications, use HashMap since they are otherwise the same in terms of functionality.