0% found this document useful (0 votes)
5 views7 pages

Java Programming 15.7.26

The document outlines the components of the Java working environment, specifically the Java Development Kit (JDK), Java Runtime Environment (JRE), and Java Virtual Machine (JVM). It explains that the JDK includes tools for developing Java applications, while the JRE provides the necessary environment to execute them, with the JVM serving as the interpreter. Additionally, it describes the structure of a simple Java program, emphasizing the importance of classes and the main method as the entry point for execution.

Uploaded by

mekala.r
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views7 pages

Java Programming 15.7.26

The document outlines the components of the Java working environment, specifically the Java Development Kit (JDK), Java Runtime Environment (JRE), and Java Virtual Machine (JVM). It explains that the JDK includes tools for developing Java applications, while the JRE provides the necessary environment to execute them, with the JVM serving as the interpreter. Additionally, it describes the structure of a simple Java program, emphasizing the importance of classes and the main method as the entry point for execution.

Uploaded by

mekala.r
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

You might also like