The common implementation classes for the map interface are:
1.HashMap
2.Hashtable
3.TreeMap
4.LinkedHashMap
Discussion 1: underlying mechanisms
HashMap and Hashtable based on array implementation, TREEMAP based on tree structure, the underlying storage structure is a typical linked list structure. Linkedhashmap inherits from HashMap, so it is also based on an array implementation.
Discussion 2: Inheritance relationships
HashMap and TreeMap inherit from the Abstractmap,hashtable inheritance from the Dictionary,linkedhashmap inheritance from HashMap.
Discussion 3: Synchronizing relationships
Hashtable are synchronized, and HashMap are not synchronized with TreeMap and Linkedhashmap, and can be converted to synchronous using the methods provided in collections.
Discussion 4: iterators
Iterators are fast failures (note: Refer to the first list in this series)
Discussion 5: Not modifiable
By using Collections.unmodifiablemap (map map) to convert