I am new to Stackoverflow searched over google but not able to understand the basic difference between them.
Asked
Active
Viewed 3,215 times
-4
-
Go through http://ria101.wordpress.com/2011/12/12/concurrenthashmap-avoid-a-common-misuse/. Its a broad and nice article – sanbhat Jul 28 '13 at 17:54
1 Answers
1
The ConcurrentHashMap
is thread-safe, while the basic HashMap
is not. This is explained as well in the official documentation.

drvdijk
- 5,556
- 2
- 29
- 48
-
1Check the possible dup question, there's more on `ConcurrentHashMap` apart from being thread-safe. – Luiggi Mendoza Jul 28 '13 at 17:54
-
After typing this answer, I saw your link to the dup question. I guess this question will be closed relatively soon ;) – drvdijk Jul 28 '13 at 17:54