What is Java Virtual Machine and Does it Work?

What is java virtual machine?

A Java Virtual Machine (JVM) is the software, which interprets compiled Java byte code and runs the java program. Java Virtual Machine language conceptually represents the instruction set of a stack-oriented, capability architecture. JAVA is a high-level object oriented language, which is compiled through JAVA code.

It first converted into highly efficient byte code by the java compiler and the generated byte code is then interpreted by a JVM. As Java is a platform independent language, JVM is available for almost all the platforms. It is for both windows to various handheld devices.

Let’s know how Java Virtual Machine works:

Java Virtual Machine does not have any information regarding the programming languages. JVM knows only binary byte code format. Programmer can generate the bytecode that adheres to this format in any of the programming languages. Every java program runs within the boundaries defined by the Java Virtual Machine. The code of java runs inside the JVM cannot go beyond the security constraints defined by Java Virtual Machine. Java applications are considered as secure applications on internet due to this software.

Java Virtual Machine languages support:

Java Virtual Machine (JVM) was primarily aimed at running compiled Java programs. However, later on other languages can now run on top of it as like Python with Jython, Common Lisp with Armed Bear Common Lisp, Ruby with JRuby, JavaScript with Rhino, Groovy, Scala and Forth, with Misty Beach Forth.The JVM is a crucial component of the Java Platform.

For more information about Java Virtual machine, enabled services then please consult The Java Community Process or JCP.