r/javahelp • • Mar 14 '26 • Bravo 1

What is JVM

I tried googling about JVM and VM in general. But I cant wrap my head around what VM is and what JVM is. Can you explain what they are in simple terms, so I can get a general idea?

17 Upvotes

14 comments sorted by

View all comments

Show parent comment

5

u/Spare-Plum Mar 14 '26

Great answer!

To put it simply, the "machine" is your raw CPU, you can send it binary and it will execute the instructions.

The JVM is independent from this, it's a series of instructions, and the JVM translates it to what will run on your machine while it's running.

A "VM" colloquially is a bit different. This typically refers to an operating system that is running within another operating system.

The commonality is that they are both sandboxes, self-contained and not running directly on the hardware