Java Virtual Machine
also known as JVM is a virtual machine that is included in Java Runtime
Environment to run java applications. JVM can also be called as the heart of
Java platform. If you have JRE installed on your computer or any device it
means you have JVM installed in it.
The JVM is acts like
a virtual environment to run platform independent java byte codes. Byte codes
are the files with “.class” extension that are generated after compilation of
java file. Byte codes are the intermediate code between java and machine language.
JVM provides a cross platform functionality to java applications. Most
programming languages like C complied the programs according to the operating
system and processor architecture, it means they cannot run on machines having
different processor architecture.
The JVM is a machine
within original machine that acts as intermediate between the application and
the original machine. The JVM converts the byte code files according to the
original machine requirement. Hence java applications are platform independent as
the JVM take care of all the platform dependencies.
JVM also runs the
“.jar” files that are Java Archive files.
Java API is also
bundled with JVM in Java Runtime Environment. The JVM is responsible for “write
once run anywhere” (WORA) nature of java programs.
JVM also have lots
of other feature like automated exception handling, memory management, garbage
collection.
No comments:
Post a Comment