File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes I am asking about internal operation... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "I am asking about internal operation..." Watch "I am asking about internal operation..." New topic
Author

I am asking about internal operation...

sudharani Savadi
Ranch Hand

Joined: Feb 23, 2011
Posts: 30


javac filename(Lab1).java and java filename(Lab1)


How the JVM will process those two statements internally?.
please help me to understanding internal process by the JVM...
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13883
    
  10

javac is the compiler, which translates your source code into byte code. Byte code is a list of simple instructions that the JVM (Java Virtual Machine) can execute. The JVM contains a JIT (just-in-time) compiler that translates byte code into native machine code that the CPU in your computer can execute directly.

That is a high-level description; ofcourse there are a lot more details to understand if you really want to know exactly how the Java compiler and the JVM work.

This tutorial page explains more: About the Java Technology.

If you really want to know exactly how the JVM works, then you can download the source code (written in C or C++) from OpenJDK.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
sudharani Savadi
Ranch Hand

Joined: Feb 23, 2011
Posts: 30

Thank you for clearing my doubts.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: I am asking about internal operation...
 
Similar Threads
Runtime.getRuntime.exec() problem
running java program from a shell script
Inspecting Java Processes within the JVM
Running a Java Class from a Unix Shell Script
increasing heap size in jboss