What is bootstrap, extension and system class loader? Or can you explain primordial class loader?



What is bootstrap, extension and system class loader? Or can you explain primordial class loader?..

Answer / Shambhu Nath Chaudhary

In Java, the ClassLoader hierarchy consists of three main types:
1. Bootstrap ClassLoader (also known as Primordial ClassLoader): It loads classes that are part of the JDK itself and is not user-accessible.
2. Extension ClassLoader: It's used to load classes from the extension directory under the JRE's lib directory. It searches for a class by looking in its extensions directory before asking its parent, the system class loader.
3. System ClassLoader: It loads all the user-defined classes and searches for them in the classpath that is specified during the JVM startup. It uses the CLASSPATH environment variable or command line arguments.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOAD Interview Questions

Why is class hierarchies managed in object-oriented programming?

1 Answers  


Define Data Abstraction. What is its importance?

1 Answers   Amazon, Infosys,


What is the use of finalize method?

1 Answers  


What is static and dynamic Binding?

1 Answers  


Define a good interface?

1 Answers  


Explain the abstract class modifier?

1 Answers  


Define exceptions?

1 Answers  


What are a base class, subclass, and superclass?

1 Answers  


Differentiate between a class and a method.

1 Answers  


What is the difference between class and interface?

1 Answers  


Can an interface inherit from another interface?

1 Answers  


Explain what an object is.

1 Answers   TCS,


Categories