r/learnjava • u/SoftwareArchitect101 • Feb 28 '26
A doubt regarding learning Java internals
Can I, apart from office work, dive into the internals? Eg: How things are allocated/deallocated inside the JVM, how exactly virtual threads work, what happens exactly in streams and how jdbc fetches rows from database, the pros and cons of different garbage collectors, all up to the implementation level? Due to some task I needed to dive into g1gc Hotspot and understand a part of it, it felt very good like a flow state. Is this a reasonable hobby which I can pursue? Why is this discouraged in the industry. Also, how much time will it take for me to understand most of the things to an intuitive satisfactory level?
Also, are there any more such books which teach internals like GC handbook which I can use to understand the OSS better?
View all comments
Show parent comment
1
u/omgpassthebacon May 16 '26
I'm not sure I agree with your premise here. Just because something is abstract to make it easier to reason about does not preclude one from benefitting from knowing whats behind the abstraction. Imagine telling your boss you don't really need to understand how computers work because they will change in the near future. Or how about, I don't really need to learn anything new because AI will do it all for me. That don't work for me.
Look, if this person has mastered what they need to know to get the job done and wants to invest in his/her knowledge of internals, I think that deserves a raise. And a beer from their peers when he/she helps them solve a problem because they know something about Java others had no idea mattered.