How does java ConcurrentHashMap handles concurrency internally?
Replied on April 02, 2014
ConcurrentHashMap implements Segment class. Segment class behaves like a hashtable and is synchronized using RetrantLock. Retrieval of content from ConcurrentHashMap does not implement locking. But it returns the most updated value. While putting value in ConcurrentHashMap, it follows the below steps.