Subject: what executes the jvm ??
Posted By: deepak Post Date: 7/21/2008 6:19:07 AM
i was reading class-loaders from the book "core java 2 vol 2", when i came across the following lines:
"A Java compiler converts source into the machine language of a hypothetical machine, called the virtual machine. The virtual machine code is stored in a class file with a .class extension."
what i have read till now, the instance of the classes i make are run(interpreted) by JVM; but (as stated above) since JVM itself is an instance of a class , what interprets the JVM itself ??

the book further says :
"These class files must be interpreted by a program that can translate the instruction set of the virtual machine into the machine language of the target machine."
what is "a program" here ??

thanks.
Reply By: elvisfeverr Reply Date: 7/23/2008 8:55:58 AM
operating system runs jvm and suitable java framework for that operating system turns java bytecode into native code. JVM itself is not an instance of class.It says virtual machine code is stored in a class file..a .class file happens when you compile a .java source file to bytecode ( thing that jvm runs ) and that virtual machine itself turns the bytecode into machine code while the program is executing..


Go to topic 72817

Return to index page 1