Class Loaders Types
Java ClassLoader divided into three main types which are summarized below.
1. Bootstrap class loader
2. Extensions class loader
3-AppClassLoader class
1. Bootstrap class loader
The bootstrap class loader loads the core java libraries which is responsible for loading important java classes like java.lang.Object and other runtime libraries into memory. The important runtime classes are packaged inside the jre/lib/rt.jar file.
Here is the quick view of lib folder inside jre where rt.jar available.
2.Extensions class loader:
Extensions class loader loads the code into the extension directories. It is implemented by ExtClassLoader class. The important runtime classes are packaged inside jre/lib/ext directory.
Here is the quick view of ext folder inside lib folder where all the supported jar available.
3-AppClassLoader (System Class Loader) class:
Application class loader including the code found on the java.class.path which maps to the application classpath variables. This class loader loads all the class files into the classpath of the application.
