JVM-ClassLoader
Class Loader Subsystem ensures that classes are loaded safely, lazily, and hierarchically, enabling Java’s security, modularity, and runtime flexibility. Why we need JVM JVM is responsible for making Java program Platform Independent, We write a Java Code (.java) --then--> compiler (javac) --compile it and create --> Byte Code (.class) --then--> Java Interpreter convert into machine code How JAVA Runs the Application JVM Architecture Think of JVM as 4 major pillars : 1️⃣ Class Loader Subsystem 2️⃣ Runtime Data Areas (Memory) 3️⃣ Execution Engine 4️⃣ Native Interface & Libraries Class Loader Subsystem The Class Loader Subsystem perform three part: Loading Linking Initialization What Loading does JVM locates and reads a .class files and create an in-memory representation of that class. When JVM sees a reference like: new User(); Then: It finds the fully qualified class name Asks a class loader to load it. Reads bytecodes from: File System JAR Network (rare) ...