A collection framework is a class library to handle group of objects. Collection framework is implemented in 'java.util package'. A collection object stores references of other objects.
In case of a single thread, using hashmap is faster than the hashtable
In case of multiple threads, using hashtable is advisable. With a single thread, hashtable becomes slow
Hashmap allows null keys and null values to be stored
Hashtable does not allow null keys or values
Iterator in the hashmap is fail-fast. This means iterator will produce exception if concurrent updates are made to the hashmap
Enumeration for the hashtable is not fail-fast. This means even if concurrent updations are done to hashtable, there will not be any incorrect results produced by the enumeration.