English, asked by chetanarakeri2020, 24 days ago

java program to synchronize HashMap in java​

Answers

Answered by badgirl5887
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