views:

105

answers:

4

Hi all,

Not sure if this has been asked before, did some digging. I'm trying to prepare for a few interviews, and I was just curious to see if how Java implements its data structures (arraylist, map), etc is public.

Thanks.

+10  A: 

src.zip inside the JDK.

Tom Hawtin - tackline
+3  A: 

You can get latest source code from the JDK7 repository. (JDK 6 is here.)

Thomas Jung
Fast and easy -- thanks
Michael
+1  A: 

Either src.zip, as suggested, or you can open them in your IDE (Eclipse for example), if you have set it up to use JDK.

Bozho
+3  A: 

Use a modern IDE (like eclipse), link the locally installed Java SDK to a Java Project and you can view the source code of (most) classes from the SUN Java development kit.

Extracting src.zip is an alternative but it .. say .. doesn't support code browsing ;)

Andreas_D