Hashtable, HashMap and TreeMap are map implementations these collection classes should be used when you need to store data in key/value pairs.
Unlike the other two classes TreeMap is a Sorted map , sorts the element in the natural order. Hash Map & Hashtable are Unsorted & Unordered , Difference between Hashmap & hashtable is Hash map allows one null key & many null values but hash table does not . Also Hash table is synchronized