What is Java Virtual Machine (JVM) ?

The Java Virtual Machine  is an abstraction layer between a Java application and java platform.  The JVM acts as a “virtual” machine and also as processor. To the bytecode comprising the program, they are communicating with a physical machine, they are actually interacting with the Java Virtual Machine.

 Java Virtual Machine (JVM)
JVM allows portability to execute within platform and hardware-independent applications. It is a  big part of the "write once, run anywhere (WORA)". The JVM is actually part of the Java Runtime Environment (JRE). It is the JRE that enables Java bytecode to run on any platform. Bytecodes, which are interpreted by the JVM, simply  found in the JRE when they need to perform actions they cannot do by there own.. Bytecodes is more about functionality by themselves and need the JVM to do many tasks for them.This used as limitation is actually an advantage. It allows the Java programs to be very small compared to other executable programs. It is very important, it allows them to be very portable. Since each JVM is self-made for a specific platform, a Java program cannot run on it unless: (1) An actual JVM has been created for it, and; (2) JVM must have been installed on it.

Post a Comment

أحدث أقدم