JVM
The program that loads class files and runs their bytecode, turning hot code into native machine instructions while it runs.
In more detail
JVM stands for Java virtual machine. It does not run Java source code; it runs bytecode, so it can also run class files produced from other languages such as Kotlin. It loads each class the first time it is needed, verifies it, interprets it, and uses a JIT compiler to turn frequently used methods into native code. Despite the name it is an ordinary program, not a full virtual computer with its own operating system.
Example
java Hello # starts the JVM and runs the class named HelloRelated terms
- bytecode — A compact, portable instruction format that a virtual machine or interpreter executes, instead of instructions for one particular processor.
- class file — The file javac writes for each class, holding that class's bytecode plus a description of its fields and methods.
- JIT compiler — A compiler inside a runtime that turns intermediate code into native machine code while the program runs.
- JRE — The JVM plus the Java standard library: everything needed to run a compiled Java program, but no compiler.
- JDK — The Java Development Kit: the Java runtime plus the tools that build programs, such as the compiler javac, the disassembler javap and the jar tool.
- HotSpot — The JVM implementation developed in the OpenJDK project and used by almost every JDK distribution.
Taught in
- The Alert That Came An Hour Late — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Full Disks On Black Friday — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Two Controllers At Once — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- The Virtual Machine, The Kit And The Runtime — Modern Java: Virtual Threads & High-Throughput Services
- Release Trains And Long Term Support — Modern Java: Virtual Threads & High-Throughput Services
- The Lifecycle Of A Java Program — Modern Java: Virtual Threads & High-Throughput Services
- Fifty Items, Five Traps — Oracle Certified Professional: Java SE 21 Developer (1Z0-830) Exam Prep
- Platform And Virtual Threads, Runnable And Callable — Oracle Certified Professional: Java SE 21 Developer (1Z0-830) Exam Prep
- Concurrent Collections And Parallel Streams — Oracle Certified Professional: Java SE 21 Developer (1Z0-830) Exam Prep
- Console And File I/O With Streams — Oracle Certified Professional: Java SE 21 Developer (1Z0-830) Exam Prep
- Locales, Resource Bundles And Formatting — Oracle Certified Professional: Java SE 21 Developer (1Z0-830) Exam Prep
- Final Review And Exam Day — Oracle Certified Professional: Java SE 21 Developer (1Z0-830) Exam Prep
References
- The Java Virtual Machine Specification, Java SE 21
- Oracle: Java Virtual Machine Technology Overview
- dev.java: The Java Virtual Machine