-2

I know the internal architecture of Hashmap but varies some how from HashMap becouse this is thread safe.

Sai prateek
  • 11,842
  • 9
  • 51
  • 66

1 Answers1

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