📜  hashmap 和 linkedhashmap 之间的区别 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:32.050000             🧑  作者: Mango

代码示例1
Main difference between HashMap and LinkedHashMap
I remember is that LinkedHashMap maintains
insertion order of keys, 
On the other hand HashMap doesn't maintain
any order or keys or values.
Also LinkedHashMap requires more memory than HashMap
because of the ordering feature.
LinkedHashMap doublly Linked List to 
maintain order of elements.