title: Does the Java JVM load an entire jar or ear if it only uses one class from it?
body: <p>Lets pretend you have a 3 Gb jar file and your application only uses a small class within it.  Does the JVM load the whole jar file into memory or does it read the Table of Contents  and load only the pieces it needs?  Is this behavior controllable?</p>