Tuesday, November 29, 2011

Explain working of Java Virtual Machine(JVM).

JVM is an abstract computing machine like any other real computing machine which interprets the byte code( .class file which contains virtual machine instructions ) to a machine dependent native code. The output of JVM i.e the native code contains low level instructions which is easily understandable by the micro processors which process the native code to give the desire output.:JVM(Java virtual machine):it is the runtime environment for java programs and it contains the following ::JVM is a software which takes .class file content and convert them machine language code.:JVM is software which interprets the bytecode according to platform of that machine(on which this bytecode is to be execute) :At the execution time java create on class file that is byte code. This byte code is run by JVM. JVM is a runtime environment.:JVM: As it name specifies, it is a virtual computer placed on top of your hardware and os. when ever a java application is called an jvm instance is created. The thread from os creates the jvm instance.:running a program means "tell the JVM to load the class and start and executing its main():JVM means Java Virtual Machine.. Java was an object oriented language, JVM it contains both compiler and interpreter other languages having only compiler or interpreter..:jvm functionalities............:In my thery First JAVA CODE IS convert Byte code help of JAVA Compiler and after Byte code convert Machine code with help of Jave Interpreter so three code and teo convert are used in JVM ........:jvm stands for java virtual machine.:jvm converts byte code into machinelanguage.only because of jvm java made paltform independent:jvm stands for java virtual machine.At the execution time java create on class file that is byte code. This byte code is run by JVM. JVM is a runtime environment.:JVM is Java Virtual Machine. when a .class file (byte code)is loaded into the class loader subsystem our JRE will creates an instance of JVM and this JVM provides necessary environment (means memory space) for executing this .class file at this same time it can enables some garbauge collection and exception handling mechanisms . JVM is an Interpreter and it is platform dependent , it internally implements JIT compiler such as SUN&
Category:Java Interview Questions

No comments:

Post a Comment