Day1 Java Introduction
Day1 Java Introduction
Java Introduction
an
Introduction of Java
th
Java is one of the most popular programming
an
languages in the world, it is an objectoriented
programming language.
m
The Java platform provides a complete environment
bo
for application development on desktops and
Ro
Java Edition
We have 3 editions of Java for building a different kinds
of applications
1. Java Standard Edition (JSE)
Java Standard Edition (JSE) is the core platform for
an
developing and running Java applications on desktops
and servers. It provides essential libraries, tools, and
th
runtime environments necessary for Java programs to
function independently of specific hardware or
an
operating systems.
m
2. Java Enterprise Edition (JEE)
bo
an
which means more opportunities for us to get
hired as a professional programmers.
th
Features of Java
an
Simple:- Java is easy to learn and its syntax is quite
m
simple, clean and easy to understand.
bo
an
JDK or Java SDK
th
Java Standard Edition comes in the form of
an
Specification, and the implementation of this
specification is the JDK software, also known as
m
Java SDK (Java Standard Development Kit).
bo
an
th
an
m
bo
Ro
an
as an intermediary between Java code and the
th
underlying hardware and operating system.
returnType methodName(){
--instructions--
}
Some method returns some value, whereas some
method does not return any value. the method
which does not return any value we apply void as a
return type. void is a reserved keyword in java, the
method name should be proper and descriptive.
Example:
Example
void calculateInterest(){
}
We can pass some parameters to this method also, we
an
use parameters to pass the value to our method. for
example, amount, rate of interest, duration, etc.
th
and inside the pair of parenthesis { }, we write the
an
actual implementation java cod
m
Every java program should have at least one method.
and that method is called the main method.
bo
Ro
access modifier.
An access modifier is a special keyword that
m
an
The static is a keyword, we will talk about this
th
keyword later, for now, just remember the main
an
method in our program should always be static. and
the return type of this method is void, which means
m
this method is not going to return any value.
bo
System.out.println("Hello World");
You Problem:
Write a java application that will print Your Name
an
and Address in the following pattern:
th
an
m
bo
Ro