Java working
environment
• JAVA DEVELOPMENT KIT
The Java Development Kit (JDK) is a
software development environment used
for developing Java applications and
applets. It includes the Java Runtime
Environment (JRE), an
interpreter/loader (Java), a compiler
(javac), an archiver (jar), a
documentation generator (Javadoc) and
other tools needed in Java
development.
• JAVA RUNTIME ENVIRONMENT
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
• JVM –
Java Virtual machine(JVM) is a very
important part of both JDK and JRE
because it is contained or inbuilt in
both. Whatever Java program you run
using JRE or JDK goes into JVM and
JVM is responsible for executing the
java program line by line hence it is
also known as interpreter.
JDK, JVM & JRE
How JVM Work?
A Simple Java Program
• Every Java program must have at least one
class. Each class has a name. By convention,
class names start with an uppercase letter.
• In a program, multiple classes may cooperate
with each other.
• Each program needs an entry point to start
execution.
• The program is executed from the main method
that is defined in one of the classes. A class
may contain several methods. The main method is
the entry point where the program begins
execution. 6
Creating, Compiling, and Running
Programs