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 |
Why is class hierarchies managed in object-oriented programming?
Define Data Abstraction. What is its importance?
What is the use of finalize method?
What is static and dynamic Binding?
Define a good interface?
Explain the abstract class modifier?
Define exceptions?
What are a base class, subclass, and superclass?
Differentiate between a class and a method.
What is the difference between class and interface?
Can an interface inherit from another interface?
Explain what an object is.