wellnwill Marathahalli Bangalore

Compilation and Execution

Types of Programming Languages

Low Level Programming :-->

The Binary data (0, 1) used to write the code.

Middle Level Programming :-->

Assembly codes like ADD, SUB, and MUL etc are used to write the code. Assembler is required to generate native code from assembly code.

EX: void main () {  
int a = 10, b = 20, c;  
   asm {  
      mov ax,a  
      mov bx,b  
      add ax,bx  
      mov c,ax  
   }  

High Level Programming: -->

These languages are closer to human languages. Respective Compiler and interpreter is required to generate native code from high level language.

C Program compilation and execution on windows

Source code (filename.c) > C compiler > Machine or native code (filename.exe) >OS (window)

Java Program compilation and execution on any platform

Source code (filename.java) > java compiler > Byte code > JVM > Machine or native code

Java Compiler (javac)

It checks syntactical errors. It converts source code to byte code at once.

Java Interpreter (java)

It converts byte code to machine code line by line and execute the machine code. The converting and executing line by line process consumes much time that is why JIT compiler comes into picture.

JIT Compiler

The Just-In-Time (JIT) compiler is a component of the Java Runtime Environment that improves the performance of Java applications at run time.

JDK :-- JDK stands for java development kit and it provides environment to compile and run java program.

JVM :-- JVM stands for java virtual machine and it is used for interpreting line by line java program.

JRE :-- JRE stands for java runtime environment and it is used only to run the java application.

JAVA Edition

Java Standard Edition (JSE):-

It is used to develop desktop application using applet, swing and awt etc. Ex- media player, Skype for Windows, Windows Calculator etc.

Java Enterprise Edition (JEE):-

It is used to develop web and distributed application using Servlet, JSP, JDBC, EJB etc. EX-bank application, social sites etc.

Java Micro Edition (JME):-

It is used to develop mobile application using Android and Java ME. Ex- mobile applications etc.

Java Enterprise Edition (JEE):-

Footer with Map

Top