1
JavaBeginner#jvm#jdk
The Java Virtual Machine (JVM) is an abstract computing machine that enables a computer to run Java programs. It loads .class files, verifies bytecode, and executes it via the interpreter or JIT compiler. The JVM provides platform independence: 'Write Once, Run Anywhere'.
javac Hello.java produces Hello.class (bytecode). java Hello runs it: the JVM loads Hello.class, verifies it, and the JIT compiles hot methods to native code at runtime.