Java's jar file format builds off of the zip file format, and supports compression of the class files inside it. When and how does the JVM decide which class files to uncompress and pull out of the jars on its classpath? Is the process dynamic and done at runtime as classes are needed, or are they all uncompressed up front before the program actually runs?
+3
A:
Is the process dynamic and done at runtime as classes are needed
Yes. You can log the activity of the class loader as follows (in the terminal):
java -verbose:class [ your other flags and arguments... ]
Ingo
2010-05-20 16:08:52