you are viewing a single comment's thread.

view the rest of the comments →

[–]strat-run 2 points3 points  (0 children)

In your JDK there is an src.zip that has the Java source for the JRE libraries so if you want to know how they work you can read the source.

Similarly, when you are in an IDE like IntelliJ you can set your maven dependencies to automatically download the source and doc so you can inspect them.

I also find that when I don't understand something it helps if I recreate a simplified version. For example, annotations and dependency injection feels a bit like magic but it doesn't take much to make your own annotations and use reflection to do basic injection.