Quantcast
Channel: Difference between HashMap, LinkedHashMap and TreeMap - Stack Overflow
Viewing all articles
Browse latest Browse all 18

Answer by pierrotlefou for Difference between HashMap, LinkedHashMap and TreeMap

$
0
0

See where each class is in the class hierarchy in the following diagram (bigger one). TreeMap implements SortedMap and NavigableMap while HashMap doesn't.

HashTable is obsolete and the corresponding ConcurrentHashMap class should be used. enter image description here


Viewing all articles
Browse latest Browse all 18


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>