Jar files loading in memory
I have questions
1. Are the jar files specified in classpath of a java program loaded in memory at the jvm startup ?
2. If all the jar files of classpath are not loaded in memory at startup, then say a class pack1.MyClass needs to be loaded (instantiated) from a jar file say myclasses.jar - in such a case, will myclasses.jar be loaded in memory and remain loaded till the jvm process is on ? Or myclasses.jar is loaded, the class file is extracted and then the jar file is unloaded ?