After downloading openJDK from here, I found a src.zip
folder under lib
directory. This zipped file holds Java API implementations.
After unzipping this file, I do find a lot of familiar names. After running the following script in Python, it turns out there are 17733 .java
files.
import pathlib
print(len(list(pathlib.Path(".").rglob("*.java"))))
Now I am wondering if there is any possibility I could compile these .java
files into .class
using javac
to inspect their corresponding binaries.
A similar post is here but I do not think it resolve my confusion.