JavaBeginner#jvm#fundamentals

What is JVM?

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'.

Example
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.

Related Questions

1
JavaBeginner#jvm#jdk

Difference between JDK, JRE and JVM?

Open
2
JavaBeginner#operators#object

What is the difference between == and equals() in Java?

Open
3
JavaBeginner#oop

Explain OOP principles in Java.

Open