ConcurrentMap

Hierarchy of ConcurrentMap and its new methods :

  1. put vs putIfAbsent method : Example

Object putIfAbsent(Object key, Object value)

2. Remove method of Map and ConcurrentMap

boolean remove(Object key, Object value)

3. Replace method on concurrentMap

boolean replace(Object key, Object oldValue, Object newValue)

Leave a Comment