Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What happens after code is compiled ?

 
Swapna Gouri Kalanidhi
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15207
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic