Sometimes it’s really required to preload classes especially in the case of third party libraries. If a custom implementation required for third party library classes, often tend to download all the source code of third party library and apply our changes , compile and add it to the classpath. Is this really required? are there any option?
With JVM this is not really needed , simple adding “-Xbootclasspath/p:<Customizedclass lib jar>” would do our job. Basically this option enables us to pre load the classes with our own custom code.
For additional please read an excellent article in Dzone.