What are the Different Types of Classloaders in Java ?

Java Classloader is the part of the Java Runtime Environment (JRE) that loads classes on demand into Java Virtual Machine (JVM).

When the JVM is started, three types of class loaders are used..

  • 1 - Bootstrap Classloader: It loads core java API file rt.jar classes from folder.
  • 2 - Extension Classloader: It loads jar files from lib/ext folder.
  • 3 - System/Application Classloader: It loads jar files from path specified in the CLASSPATH environment variable.

Classes may be loaded from the local file system, a remote file system, or even the web.



You May Interest

What is the Difference Between an ArrayList and a LinkedList Data ...

What are the Similarities Between HashSet and HashMap in Java ?

How Will You Create a Shallow Copy of a Map in Java ?

What are the Differences Between Comparable and Comparator in Jav ...

What is the Difference Between pass by reference and pass by valu ...