Class Loaders (contd)
Java 1.2 uses a parent-delegation model (chain of class loaders) :
- bootstrap class loader: It loads classes of the Java API only (except specified explicitly by the option -Xbootclasspath of the java interpreter or by the ASCII file java.policy).
- Classloader objects (or custom classloaders): Each of these has a parent class loader. The bootstrap class loader is the parent of only one of them. Every custom class loader delegates requests for loading classes to its parent. Only when its parent can’t provide a class, a custom class loader will try to load it.
-