Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 21st, 2008, 06:19 AM
Authorized User
Join Date: Jun 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default what executes the jvm ??

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 ??

Old July 23rd, 2008, 08:55 AM
Authorized User
Join Date: Jan 2008
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts

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..

Similar Threads
Thread Thread Starter Forum Replies Last Post
job executes, package step doesn't cronid SQL Server DTS 1 October 23rd, 2006 08:04 AM
xp_sendmail executes forever bsrini SQL Server 2000 2 March 14th, 2006 06:56 PM
Prevent user input while JS executes matty1stop BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 0 November 17th, 2005 10:35 AM
Yukon Results executes Stored Procedure bmains SQL Server 2000 0 May 23rd, 2005 12:35 PM
parameters to jvm uskiranj Servlets 0 May 28th, 2004 03:47 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.