adspace
What is bootstrap, extension and system class loader? Or can you explain primordial class loader?
Answer Posted / 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 View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category