Publicis Sapient Interview Question

What is ConcurrentMap and how it works?

Interview Answer

Anonymous

Sep 26, 2017

It’s a Map which providing thread safety and atomicity guarantees. For Memory consistency it works with other concurrent collections, actions in a thread prior to placing an object into a ConcurrentMap as a key or value happen-before actions subsequent to the access or removal of that object from the ConcurrentMap in another thread.

4