I know the internal architecture of Hashmap but varies some how from HashMap becouse this is thread safe.
Asked
Active
Viewed 455 times
-2
-
http://stackoverflow.com/questions/510632/whats-the-difference-between-concurrenthashmap-and-collections-synchronizedmap – Hanlet Escaño Nov 19 '13 at 06:48
-
please unhold this so that better answer can be schedule. – Nov 20 '13 at 14:59
1 Answers
2
Ignoring the fact that you shouldn't actually care about the internal architecture of a collections implementation (you should only care about the public API and relevant contract)...
The source code for the JDK library is distributed with the JDK.
You can also browse versions of it online (for example: http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/7-b147/java/util/HashMap.java?av=f)
Have fun.

Jason C
- 38,729
- 14
- 126
- 182