Define class loader and its type in java

Java class loader is mainly responsible for loading java classes during runtime dynamically to the Java Virtual Machine(JVM). Classloader is a subset of JVM, responsible for loading the class files.

Types of class loader in java

There are three types of class loader in java. 1) Application or System class loader 2) Extension class loader and 3) Bootstrap class loader.

Application or System class loader

Application or System class loader loads our own files in the classpath.

Extension class loader

Extension class loaders loads classes that are extensions of the standard core java classes. eg. loads the logging classes.

Bootstrap class loader

Bootstrap class loader loads classes files related to the java platform.

Hope it will help!