You are on page 1of 2

SKD ACADEMY NOTES CLASS X COMPUTER APPLICATION

CHAPTER-2
INTRODUCTION TO JAVA
PART-2
Compilation Process:
Traditional Compilation Process:
In this type of compilation process, the source code(i.e. the code written in
high level ;language by the programmer) is converted directly into machine
code by the compiler at the time of compilation .

The drawback of this compilation process is that, it is platform


dependent i.e. the source code written on one operating system can
only be executed on that operating system.

Java Compilation Process:

In Java compilation process, at the time of compilation the source code


is converted into byte code (an intermediate code which is independent
of Operating Systems) and this byte code is converted into machine
code with the help of JVM(Java Virtual Machine) interpreter and
JIT(Just In Time) present in JVM.
SKD ACADEMY NOTES CLASS X COMPUTER APPLICATION

The byte code enable Java programs to be executed on any operating


system having JVM and this makes the Java –a platform independent
language.

JDK: Java development toolkit (JDK) provides number of tools which


are essential to develop and run java programs.

Some of the tools are:

javac: It is the java compiler used for translating source code to byte
code.

java: It is the java interpreter used for running Java applications and
Applets.

jdb: It is a Java debugger used for finding eroors and removing them.

Note: When we save our java program then a “.java” extension file is
created and after compilation (with the help of javac) another file with
same name but with “.class” extension get created (this is the
executable file or byte code file).

You might also like