Where can I find the source code for Java data structures?

Not sure if this was asked before, did some digging. I'm trying to prepare for a few interviews, and I was just curious to find out if Java is implementing its data structures (arraylist, map), etc. It is publicly available.

+2
source share
4 answers

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

+4
source

src.zip inside JDK.

+10
source

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

Extracting src.zip is an alternative, but it .. let's say .. does not support viewing code;)

+3
source

Either src.zip, as suggested, or you can open them in your IDE (e.g. Eclipse) if you configured it to use the JDK.

+1
source

Source: https://habr.com/ru/post/1723921/


All Articles