aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 13868
    
  10

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
 
 
subject: What happens after code is compiled ?
 
Similar Threads
downcast
StackOverflowError in RMI communication
java.net.SocketException
Bytecode
Troubleshoot for Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException