Class loaders are responsible for dynamically finding and loading the Java classes into JVM. It helps the JVM in compiling the java code written by the programmer and run them.
There are 3 types of class loaders:
These are native classes written in C, C++. It loads the classes from jre>lib>rt.jar inside Java installation folder.
It is partially written in Java. It is child of Bootstrap class loader. It loads the classes from jre>lib>ext>*jar in Java installation folder.
These are the classes completely written in java by the end-user. This loads the classes from classpath environment variable of the system. It is the child of extension class loader.
Copyright Šprgrmmng. All rights reserved.