java program to synchronize HashMap in java
Answers
Answered by
5
Answer:
If you want to synchronize HashMap in Java or looking for a thread-safe alternative of HashMap then there are following options. Use Collections.synchronizedMap () to synchronize Map – This method returns a synchronized (thread-safe) map backed by the specified map.
Similar questions