JDK (Java Development Kit)
JDK is a bundle of
software component. JDK is an implementation of either of Java SE, Java EE or
Java ME. It includes the Java Runtime Environment (JRE), an interpreter or
loader, a compiler i.e. javac, an archiver i.e. jar, a documentation generator
i.e. javadoc and other tools to develop java program. JDK provides collection
of tools that are used to develop and run java programs.
JRE (Java Runtime Environment)
JRE contains JVM,
class libraries and other supporting files. It does not contain any development
tools such as compiler, debugger, etc. JRE provides the libraries, the JVM and
other components to run applets and applications written in the Java
programming language. JVM runs the program and it uses class libraries and
other supporting files provided in JRE. If you want to run any Java program,
you need to have JRE installed in the system.
JVM (Java Virtual Machine)
JVM is an abstract machine.
It is a specification that provides runtime environment in which java byte code
can be executed.
JVMs are available for many hardware and
software platforms. JVM is used to execute Java applications. The Java
compiler, javac outputs bytecodes and puts them into a .class file. The JVM
then interprets these bytecode, which can then be executed by any JVM
implementation, thus providing Java’s cross-platform portability.
No comments:
Post a Comment