Computer Science, asked by Genius4124, 11 months ago

What is the difference between hashmap and concurrenthashmap

Answers

Answered by nivabora539
0

Answer:

Difference between HashMap and ConcurrentHashMap. ... HashMap is non-Synchronized in nature i.e. HashMap is not Thread-safe whereas ConcurrentHashMap is Thread-safe in nature. HashMap performance is relatively high because it is non-synchronized in nature and any number of threads can perform simultaneously.

Answered by Anonymous
1

Answer:

HashMap is non-Synchronized in nature i.e. HashMap is not Thread-safe whereas ConcurrentHashMap is Thread-safe in nature. .

  • HashMap performance is relatively high because it is non-synchronized in nature and any number of threads can perform simultaneously.

Similar questions