Logo InterviewVault

Welcome back, Sujit Kumar Mishra

SKM

Revision Mode

Document technical questions and best-practice answers.

Cancel

What are the different class loaders in JVM? 

The different class loaders in JVM are:


1: Bootstrap Class Loader

- Loads core Java classes (like java.lang.*) from the JDK.

- It is the parent of all other class loaders.


2: Extension (Platform) Class Loader

- Loads classes from the ext (extension) directory of the JDK.

- It is a child of the Bootstrap Class Loader.


3: Application (System) Class Loader

- Loads classes from the application's classpath (the location where your code and libraries are).

- It is a child of the Extension Class Loader.


Tip to remember:

1: Think of class loaders as a chain:

Bootstrap → Extension → Application

2: Each one loads classes from a specific place, starting from the core Java classes up to your own application code.

Ready for commit