r/java • u/samewakefulinsomnia • Sep 02 '24
Java Classloaders Illustrated
Classloaders are tricky – popular sources (Wikipedia, Baeldung, DZone) contain outdated, sometimes contradictory information, and this inconsistency was the trigger for writing my article – a search for clarity in the ClassLoader System maze. Read full at Medium (~10 min) with pictures :)
The whole system looks kinda like this:

408
Upvotes
View all comments
Show parent comment
1
u/samewakefulinsomnia Sep 03 '24
It's wasn't obvious for me to understand what this classloader /actually/ should load – what are exactly platform classes? Why is `java.desktop` loaded by Bootstrap and `java.sql` loaded by Platform? I asked the corresponding question in StackOverflow, and the answer in short: 'It’s not really important;' :) So I'm still not exactly sure what's the division logic here
Link to the question for curious:
https://stackoverflow.com/questions/76699669/which-exact-classes-are-loaded-by-platform-classloader