class loading

The JVM finding a class's bytecode on the class path, reading it and preparing it the first time the class is needed.

In more detail

Classes are loaded one at a time on first use, not all at startup. After loading, the bytecode is verified and the class is initialized. A class missing from the class path therefore fails when a code path first needs it, which can be minutes into a run rather than at compile time.

Related terms

Taught in

References