You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-18
Original file line number
Diff line number
Diff line change
@@ -2469,41 +2469,37 @@ private final int x = 10;
2469
2469
2470
2470
## Q. How bootstrap class loader works in java?
2471
2471
2472
+
Bootstrap ClassLoader is repsonsible for loading standard JDK classs files from **rt.jar** and it is parent of all class loaders in java. There are three types of built-in ClassLoader in Java:
2472
2473
2473
-
Bootstrap **ClassLoader** is repsonsible for loading standard JDK classs files from **rt.jar** and it is parent of all class loaders in java.
2474
-
There are three types of built-in ClassLoader in Java:
2474
+
**1. Bootstrap Class Loader:** It loads JDK internal classes, typically loads rt.jar and other core classes for example java.lang.* package classes
2475
2475
2476
-
**1. Bootstrap Class Loader** – It loads JDK internal classes, typically loads rt.jar and other core classes for example java.lang.* package classes
2476
+
**2. Extensions Class Loader:** It loads classes from the JDK extensions directory, usually $JAVA_HOME/lib/ext directory.
2477
2477
2478
-
**2. Extensions Class Loader** – It loads classes from the JDK extensions directory, usually $JAVA_HOME/lib/ext directory.
2479
-
2480
-
**3. System Class Loader** – It loads classes from the current classpath that can be set while invoking a program using -cp or -classpath command line options.
2478
+
**3. System Class Loader:** It loads classes from the current classpath that can be set while invoking a program using -cp or -classpath command line options.
2481
2479
2482
2480
```java
2481
+
/**
2482
+
* ClassLoader
2483
+
*/
2483
2484
import java.util.logging.Level;
2484
2485
import java.util.logging.Logger;
2485
2486
2486
-
/**
2487
-
* Java program to demonstrate How ClassLoader works in Java
0 commit comments