Assignment Acp
Assignment Acp
Q No :1What is JDK,JRE and JVM and what are the differences between them
?You may also use any figure/diagram to further elaborate your answer.
JDK
The Java Development Kit (JDK) is a software development environment used
for developing Java applications and applets.
JDK includes the Java Runtime Environment (JRE), an interpreter/loader
(Java), a compiler (javac), Javadoc and other tools needed in Java development.
JDK and JRE(Java Runtime Environment) both contains JVM so that we can
run our java program.
JRE
JRE stands for “Java Runtime Environment” and may also be written as “Java
RTE.”
The Java Runtime Environment provides the minimum requirements for
executing a Java application; it consists of the Java Virtual Machine (JVM), core
classes, and supporting files.
JDK(Java Development Kit) is for development purpose whereas JRE is for
running the java programs.
JVM
JVM (Java Virtual Machine) is an abstract machine. It is called a
virtual machine because it doesn't physically exist.
A specification where working of Java Virtual Machine is specified. But
implementation provider is independent to choose the algorithm.
Runtime Instance Whenever you write java command on the command prompt
to run the java class, an instance of JVM is created.
JVM(Java Virtual Machine) is the heart of java programming language and
provides platform independence.
JDK
If any of the above checks fails, the verifier doesn’t allow the class to
be loaded.