Class loader

A class loader is an object that is responsible for loading classes.

Class loader are hirarchcal and use delegation model to load a class.

The Bootstrap class, the one embedded within the JVM have no visiblility it the class it loades

Every Class object contains a reference to the ClassLoader that defined it:

Exceptions:

  • Class objects for array classes are not created by class loaders
  • if the element type is a primitive type, then the array class has no class loader