Question: why null not allowed in concurrenthashmap?
Answer: The main reason that nulls aren't allowed in ConcurrentMaps (ConcurrentHashMaps, ConcurrentSkipListMaps) is that ambiguities that may be just barely tolerable in non-concurrent maps can't be accommodated. ... contains(key) , but in a concurrent one, the map might have changed between calls.