Explain JVM or Java Virtual Machine?



Java run on virtual machine that simulates a real computer.it is nothing more than an eloborate program that interprets each bytecode instruction, selects a set of computer specific instruction that corresponds to each byte code instruction, and run this set of instructions. Virtual machine program often contain code that serves as a virtual machine operating system. This code is known as runtime. While the virtual machine interprets the byte code, it communicates with the runtime to perform variety of computer-specific tasks such as allocating memory, accessing files, displaying information on the monitor and so on. Only virtual machine of java makes portability possible by serving as the only computer that a program needs to target. This means Java programs never need to be ported to other computers.Only virtual machine programs, which are written in computer-specific language,must be ported. 

Comments

Popular posts from this blog

Write a program to add two number using inline function in C++?

Traversing of elements program with algorithm and Flowchart