What is Java Virtual Machine (JVM)

Upulie Handalage
2 min readJul 15, 2022

Java Virtual Machine (JVM)

JVM (Java Virtual machine) is a type of Virtual Machines (VM) that runs Java on it. To install the JVM you just have to install the JRE which is the Java Runtime Environment. It is platform-dependent. This means we need to install operating system-specific JRE for the different operating systems.

Added below is the basic structure of total of it called JDK (Java Development Kit)

JVM Architecture and its APIs

You use the command javac fileName.java to compile the saved code using the java compiler. And it creates a bytecode file with the .class extension. To run it the java fileName command is used.

Inside the JVM there are three main components which turn bytecode into machine code.

  1. Class Loader-does loading
  2. Memory area- does storing
  3. Execution engine- execution

References

  1. https://image.slidesharecdn.com/cs6270presentation-chapter5-3and5-4jvmarchitecturebykwangshin-101114121242-phpapp01/95/cs6270-virtual-machines-java-virtual-machine-architecture-and-apis-3-638.jpg?cb=1422624348

--

--

Upulie Handalage

Everything in my point of view. Here for you to read on....