How Java Compiler Works?
Java
has compiler name as javac which convert source code to intermediate code
which is known as java bytecode. This java bytecode is not dependent on any
platform that is if you compile your source code in windows platform by
using javac compiler so you can run this code in any other platforms like
Linux, Mac.
What is JVM?
JVM (Java Virtual Machine) is an abstract machine. It is called virtual
machine because it doesn't physically exist. It is a specification that
provides runtime environment in which java bytecode can be executed. It can
also run those programs which are written in other languages and compiled
to Java bytecode.
JVMs are available for many hardware and software platforms. JVM, JRE and
JDK are platform dependent because configuration of each OS is different
from each other. But, Java is platform independent. There are three notions
of the JVM:
specification,
implementation, and
instance.
The JVM performs following main tasks:
-
Loads code
-
Verifies code
-
Executes code
-
Provides runtime environment
What is JRE?
JRE is an acronym for Java Runtime Environment. It is also written as Java
RTE. The Java Runtime Environment is a set of software tools which are used
for developing java applications. 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 is also actively released by other companies besides
Sun Micro Systems.
What is JDK?
JDK is an acronym for Java Development Kit. The Java Development Kit (JDK)
is a software development environment which is used to develop java
applications and
applets. It physically
exists. It contains JRE + development tools.
JDK is an implementation of any one of the below given Java Platforms
released by Oracle corporation:
-
Standard Edition Java Platform
-
Enterprise Edition Java Platform
-
Micro Edition Java Platform
The JDK contains a private Java Virtual Machine (JVM) and a few other
resources such as an interpreter/loader (Java), a compiler (javac), an
archiver (jar), a documentation generator (Javadoc) etc. to complete the
development of a Java Application.
To learn more about Java, you can join us @
TCCI.
TCCI is located in Bopal and Satellite in
Ahmedabad. We conduct
Online Lectures also, so any person located in remote place can learn Java
or any
Programming Language
easily.
Call us @ 9825618292
Visit us @ www.tccicomputercoaching.com