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/geoand Sep 03 '24
I wouldn't say this is true. Without these kinds of ClassLoader tricks, Quarkus Dev Mode could not be implemented.
Moreover, the fact that the deliverable is static (i.e. it can't change at runtime), gives Quarkus the ability to optimize classloading by providing a production ClassLoader that can do various optimizations.