File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What happens after code is compiled ?" Watch "What happens after code is compiled ?" New topic

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: 15084

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 8 API documentation
I agree. Here's the link:
subject: What happens after code is compiled ?
It's not a secret anymore!