In this post shows the key differences between JDK, JRE, and JVM in this article.
What is JVM?
JVM (Java Virtual Machine) is an abstract machine that enables your computer to run a Java program.When you run the Java program, Java compiler first compiles your Java code to bytecode. Then, the JVM translates bytecode into native machine code.
Java is a platform-independent language. It's because when you write Java code, it's ultimately written for JVM but not your physical machine (computer). Since, JVM executes the Java bytecode which is platform independent, Java is platform-independent.
0 Comments