JVM JRE JDK Data Types PDF
JVM JRE JDK Data Types PDF
JVM JRE JDK Data Types PDF
JVM (Java Virtual Machine) is an abstract machine. It is a specification that provides runtime
environment in which java bytecode can be executed.
JVMs are available for many hardware and software platforms. JVM, JRE and JDK are platform
dependent because configuration of each OS differs. But, Java is platform independent.
o Loads code
o Verifies code
o Executes code
JRE
JRE is an acronym for Java Runtime Environment.It is used to provide runtime environment.It
is the implementation of JVM. It physically exists. It contains set of libraries + other files that
JVM uses at runtime.
Implementation of JVMs are also actively released by other companies besides Sun Micro
Systems.
JDK
JDK is an acronym for Java Development Kit.It physically exists.It contains JRE +
development tools.
byte 0 1 byte
short 0 2 byte
int 0 4 byte
long 0L 8 byte
platform- independent way of executing codes. If you are a java programmer, you can
concentrate on writing software, without having to be concerned with how and where it will run.
We all know that when we compile a Java file, we get the output as a '.class' file not an 'exe'. A
'.class' file contains Java Byte codes which are executed by Java Virtual Machine. Java Virtual
Machine interprets the byte code into the machine code depending on underlying operating
system and hardware combination. JVM is platform dependent and responsible for garbage
collection, array bound checking etc.
JDK (Java Development Kit): JDK is a container of tools which are needed to develop java
programs. It is an acronym stands for Java development kit. It contains JRE and development
tools where JRE is used to run the program. JDK facilitates a java programmer to write java
applets and application.
Java application launcher: It is used to open a JRE, load the class and invoke its main method.
JRE (Java Runtime Environment): JRE is an acronym which stands for Java Runtime
Environment. When the Java programming language was invented, it was not supported by all
operating systems so there was a need of Java Runtime Environment which make able to run
java applets and application after installing on your computer.
The JRE is developed by Sun Microsystems. It includes the JVM, code library and necessary
components used to run java program.