is it thread safe to add elements to a Map by multiple threads at the same time ?
Like if 10 threads add an element to a Map at exactly the same time, is the Map going to have 10 elements or 1 ?
UPDATE: I don’t need to iterate through this map, all I need is to add, remove and get elements by key
Check if ConcurrentHashMap fits your case.