JAVA JDK

JDK components, tools and
utilities
JDK has a bin
directory which provides a variety of features and tools. Some popular JDK
utilities.
Javac: It is used to convert Java source
code into Java byte code.
rmic: It is used to creates skeletons and
stubs to use in Remote Method Invocation(RMI).
jar: It is used to compress files into a
single Java Archive(JAR) file.
javadoc: it is used to examine the names of
classes and methods contained within the class.
The JDK also
contains a number of tools to inspect the runtime behavior of a JVM.
JDK and JVM
Within the JDK
bin directory, there is a utility named as java, this java
utility will take any Java application containing a main method and execute it
is software program. When a Java source code is compiled, it is converted into
byte code i.e., compiled into byte code. Byte code is an intermediary code
between Java source code and low level machine code. When the Java utility is
called, a JVM is created, which uses a just in time (JIT) compiler to convert
byte code into machine code. This conversion from Java byte code to low level
computer instruction is the key to making a Java applications platform
independent.
JDK and JRE
JDK: JDK stands for Java Development Kit,
it is a software development environment in which we develop Java applications
and applets, It contains JRE and several tools.
JRE: It is an acronym for Java Runtime Environment,
it is a set of software tools which are used to develop Java applications. It
is used to provide runtime environment. It is the implementation of JVM(Java
Virtual Machine) and it contains a set of libraries and other files that JVM
uses at runtime.
No comments