wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes What happens after code is compiled ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What happens after code is compiled ?" Watch "What happens after code is compiled ?" New topic
Author

What happens after code is compiled ?

Swapna Gouri Kalanidhi
Ranch Hand

Joined: Mar 14, 2008
Posts: 107
Hello All

I would like to know what exactly happens after a piece of code gets compiled, ie, after we run that code, what happens?

Thank you


Thanks & Regards
Swapna Gouri
I "try", I "catch" and "finally" WIN !!!
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

The Java Virtual Machine interprets and executes the bytecode instructions in the *.class file. On Sun's JVM, (part of) the bytecode instructions are translated on the fly to native machine instructions for the processor that the JVM is running on, by the HotSpot just-in-time compiler. This makes Java run very fast.

(Click on the links for more info).
[ May 14, 2008: Message edited by: Jesper Young ]

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What happens after code is compiled ?
 
Similar Threads
Troubleshoot for Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException
downcast
Bytecode
java.net.SocketException
StackOverflowError in RMI communication