1.

What are the differences between HashMap and HashTable in Java?

Answer»
HashMapHashTable
HashMap is not synchronized THEREBY making it better for non-threaded applications.HashTable is synchronized and HENCE it is suitable for threaded applications.
Allows only ONE NULL key but any number of null in the values.This does not allow null in both keys or values.
Supports order of insertion by making use of its SUBCLASS LinkedHashMap.Order of insertion is not guaranteed in HashTable.


Discussion

No Comment Found