OOP CS3391 UNIT-1 (Lecture Note-7)
OOP CS3391 UNIT-1 (Lecture Note-7)
4 Overview of Java
Java programming language was originally developed by Sun Microsystems which
was initiated by James Gosling and released in 1995 as core component of Sun
Microsystems.
Java is a high-level object-oriented programming language, which provides
developers with the means to create powerful applications, which are very small in
size, platform independent, secure and robust.
Java runs on a variety of platforms, such as Windows, Mac OS, and the various
versions of UNIX.
Java is mainly used for Internet Programming.
Java is related to the languages C and C++. From C, Java inherits its syntax and
from C++, Java inherits its OOP concepts.
Ancestors of Java: - C, C++, B, BCPL.
1.4.1: BASIC JAVA TERMINALOGIES:
1. BYTECODE:
Byte code is an intermediate code generated from the source code by java
compiler and it is platform independent.
2. JAVA DEVELOPMENT KIT (JDK):
The Java Development Kit (JDK) is a software development environment used for
developing Java applications and applets.
It includes the Java Runtime Environment (JRE), an interpreter/loader (java), a
compiler (javac), an archiver (jar), a documentation generator (javadoc) and other
tools needed in Java development.
3. JAVA RUNTIME ENVIRONMENT (JRE):
JRE is used to provide runtime environment for JVM. It contains set of libraries +
other files that JVM uses at runtime.
4. JAVA VIRTUAL MACHINE (JVM):
JVM is an interpreter that converts a program in Java bytecode (intermediate
language) into native machine code and executes it.
JVM needs to be implemented for each platform because it will differ from platform to
platform.
The JVM performs following main tasks:
Loads code
Verifies code
Executes code
Provides runtime environment
5. JIT (JUST IN TIME) COMPILER:
It is used to improve the performance. JIT compiles parts of the byte code that have
similar functionality at the same time, and hence reduces the amount of time needed for
compilation.