What is the difference between HashMap, LinkedHashMap and TreeMap in Java? I don\'t see any difference in the output as all the three
HashMap
LinkedHashMap
TreeMap
See where each class is in the class hierarchy in the following diagram (bigger one). TreeMap implements SortedMap and NavigableMap while HashMap doesn't.
SortedMap
NavigableMap
HashTable is obsolete and the corresponding ConcurrentHashMap class should be used.
HashTable
ConcurrentHashMap