You are on page 1of 3

OOP

ASSIGNMENT#01

QUESTION#01
Define the JDK, JRE, JVM and JIT concepts and its
purpose
ANSWER:
JDK (Java Development Kit):
The Java Development Kit (JDK). The JDK includes a
private JVM and a few other resources to finish the
development of a Java application. Since the introduction
of the java platform, it has been by far the most widely
used Software Development Kit.
JVM (Java Virtual Machine):
Java Virtual Machine (JVM) is a engine that provides
runtime environment to drive the Java Code or
applications. It converts Java bytecode into machines
language. JVM is a part of Java Runtime Environment
(JRE). In other programming languages, the compiler
produces machine code for a particular system. However,
Java compiler produces code for a Virtual Machine
known as Java Virtual Machine.
JRE (Java Runtime Environment):
The Java Runtime Environment, or JRE, The JRE
combines Java code created using the JDK with the
necessary libraries required to run it on a JVM and then
creates an instance of the JVM that executes the resulting
program. JVMs are available for multiple operating
systems, and programs created with the JRE will run on
all of them. In this way, the Java Runtime Environment is
what enables a Java program to run in any operating
system without modification.
QUESTION # 2
Why is Java called platform independent language?
ANSWER
The meaning of platform-independent is that the java
compiled code (byte code) can run on all operating
systems.
A program is written in a language that is a human-
readable language. It may contain words, phrases, etc.
which the machine does not understand. For the source
code to be understood by the machine, it needs to be in a
language understood by machines, typically a machine-
level language. So, here comes the role of a compiler. The
compiler converts the high-level language (human
language) into a format understood by the machines.
Therefore, a compiler is a program that translates the
source code for another program from a programming
language into executable code.
This executable code may be a sequence of machine
instructions that can be executed by the CPU directly, or
it may be an intermediate representation that is interpreted
by a virtual machine. This intermediate representation in
Java is the Java Byte Code.

--------------------- END---------

You might also like