HashMap: Map (Key-Value) type implemented based on Hash table TreeMap: Ordered Map (based on natural sorting of keys) LinkedHashMap: Ordered Map (based on insertion order sorting) WeakHashMap: Weak only holding keys Reference, so when the key is recycled, the record corresponding to the key can be automatically deleted. IdentityHashMap: Generally, in Map implementation, if the key values are equal (equals is true), they are considered to be the same key. This Map uses the same object (reference) as the basis for judgment, and is not officially recommended for use. HashTable: Similar to HashMap, key or value can be null, thread-safe, old-fashioned implementation. Finally, I suggest that if you have this kind of problem, you can directly read the Java SE manual, which has a detailed introduction: Java SE API
I wonder if you have ever learned data structure?
HashMap: Map (Key-Value) type implemented based on Hash table
TreeMap: Ordered Map (based on natural sorting of keys)
LinkedHashMap: Ordered Map (based on insertion order sorting)
WeakHashMap: Weak only holding keys Reference, so when the key is recycled, the record corresponding to the key can be automatically deleted.
IdentityHashMap: Generally, in Map implementation, if the key values are equal (equals is true), they are considered to be the same key. This Map uses the same object (reference) as the basis for judgment, and is not officially recommended for use.
HashTable: Similar to HashMap, key or value can be null, thread-safe, old-fashioned implementation.
Finally, I suggest that if you have this kind of problem, you can directly read the Java SE manual, which has a detailed introduction: Java SE API