Class Loaders in Java

Class Loaders in Java

by Administrator | 10-Aug-2020

Tags:  ClassLoader


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:

  • Bootstrap class loader

These are native classes written in C, C++. It loads the classes from jre>lib>rt.jar inside Java installation folder.

  • Extension class loader

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.

  • System class loader

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. 



There are no comments.

Enter a new Comment:

Copyright Šprgrmmng. All rights reserved.