Thanks,
Sudhanshu(OCPJP,OCEJPAD)
Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
Debajyoti Kundu wrote:the first time a Java method is invoked, the bytecodes for the method are turned into native machine language for the host system.
It is faster to run JVM on hardware on special java chip which executes Java Byte code operations as native code.
Tim Moores wrote:
Debajyoti Kundu wrote:the first time a Java method is invoked, the bytecodes for the method are turned into native machine language for the host system.
This is not correct; please see the previous posts.
How can you tell it's not correct? When you compile a java program for the first time the .class file is generated. Unless there's no change in your code, subsequent compilation don't perform any modification to the class file.
It is faster to run JVM on hardware on special java chip which executes Java Byte code operations as native code.
While that is a theoretical possibility, it plays no significant role in practice, though.
This is also not true. You can google JVM implementation in hardware or you can also refer virtual machine section of Galvin.
Debajyoti Kundu wrote:How can you tell it's not correct? When you compile a java program for the first time the .class file is generated. Unless there's no change in your code, subsequent compilation don't perform any modification to the class file.
This is also not true. You can google JVM implementation in hardware or you can also refer virtual machine section of Galvin.
Tim Moores wrote:
Debajyoti Kundu wrote:How can you tell it's not correct? When you compile a java program for the first time the .class file is generated. Unless there's no change in your code, subsequent compilation don't perform any modification to the class file.
The statement of yours I quoted said nothing at all about compiling Java source code to class files - it said that a method is turned to native code when it is first executed, which is 100% false. You need to check your facts more carefully.
Sorry for the confusion. By the word method i did not mean java method. I should save been more specific about it.
This is also not true. You can google JVM implementation in hardware or you can also refer virtual machine section of Galvin.
It is absolutely true. Please read carefully what I wrote: I didn't say that hardware implementations weren't possible or that they didn't exist; I said that they played an insignificant role in practice. Do you really want to dispute that statement?
I don't completely agree with this notion, as it is one of the most hot topic. Surely there it's implementation is not very wide but there are some good example like PicoJava
Consider Paul's rocket mass heater. |