Java Internals: Compiler, Bytecode, JVM Explained

Day 4 – Java Internals 🧠 #Bytecode + JVM = Java’s superpower 💪 how Java code executes behind the scenes? Compiler → Bytecode → JVM → Interpreter → Output This is the secret behind Java’s platform independence. #Compiler: 1. Compiler is an intermediate software which takes source code as an input. 2. Compiler compiles the whole source code at once. 3. It checks for syntactical mistakes, if found it throws a compile time error. 4. Compiler displays all error at once. 5. If there is no syntactical mistake in the code compiler generates a new .class file i.e. known as byte code. #Bytecode: 1. Byte code is an intermediate file generated by the compiler. 2. Byte code name is same as class name. 3.Same bytecode runs on all OS. #JVM: JVM executes bytecode using 1. Class Loader 2. Bytecode Verifier 3. Interpreter 4. JIT Compiler #Interpreter : 1. It checks for the logical mistake. 2. It displays one error at a time. 3. Error given by the interpreter is known as runtime error. Compiler creates bytecode, JVM executes it — that’s the real power of Java. #Java #JVM #JavaDeveloper #LearnJava #BackendDevelopment #Programming #JavaDaily

  • logo, company name

To view or add a comment, sign in

Explore content categories