Breaking News

Sunday, 15 May 2016

JAVA COMPILE & LINKING PROCESS

Let us suppose we have a program like:-

This is a main method which is stored in a1.java which has two methods m1 and m2. Where m1 is stored in a2.java and m2 is stored in a3.java


 The Compiler will Compile all three files and produce corresponding .class files which consists of BYTECODE unlike C language no linking is done


JVM ARCHITECTURE:-

During execution of program all class files are bought to the RAM by class Loader. The byte code verifies security breaches and check byte code format next the execution engine will convert the byte code into native machine code and this is just in time compiling and it is one of the main reason the java is slow as compared to C Language


No comments:

Post a Comment

Designed By Published.. Blogger Templates