What is the difference between hashmap and concurrenthashmap
Answers
Answered by
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
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