Tags

links:
http://javahungry.blogspot.com/2015/02/how-concurrenthashmap-works-in-java-internal-implementation.html
http://javahungry.blogspot.com/2014/03/hashmap-vs-hashtable-difference-with-example-java-interview-questions.html
http://stackoverflow.com/questions/2889777/difference-between-hashmap-linkedhashmap-and-treemap
http://www.pixelstech.net/article/1394026282-ConcurrentHashMap-vs-Collections-synchronizedMap()
http://www.pixelstech.net/article/index.php?id=1384783590

summary:
– ConcurrentHashMap, segmentation lock, no order, failsafe/no exception, no null key, no null value
– LinkedHashMap, maintain insertion order, single threaded, null key null value
– New Collection, Fail-Safe Iterator (java.util.concurrent – ConcurrentSkipListSet, CopyOnWriteArrayList, ConcurrentMap)
– Old Collection, Fail-Fast Iterator (java.util package – HashMap, HashSet, TreeSet, etc)

Advertisements