SlideShare a Scribd company logo
4
Most read
8
Most read
9
Most read
Basics Of Java
History
● Most of the character of Java is inherited from two languages. From
C, Java derives its syntax. Many of Java’s Object - Oriented features
were influenced by C++.
● Java was started as a project by James Gosling, Patrick Naughton,
Chris Warth, Ed Frank and Mike Sheridan at Sun Microsystems, Inc.
in 1991.
● This language was initially called “Oak”, but was renamed as “Java”
in 1995.
Characteristics Of Java
● Portable
● Security
● Object Oriented
● Robust
● Multithreaded
● Architecture Neutral
● Distributed
● Dynamic
Basics of java
JVM (Java Virtual Machine)
Bytecodes are the machine language of the Java virtual machine.
JVM (Java Virtual Machine) is an abstract machine.
It is a specification that provides runtime environment in which java
bytecode can be executed.
JDK (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.
JRE (Java Runtime Environment)
The Java Runtime Environment (JRE), also known as Java Runtime, is
part of the Java Development Kit (JDK), a set of programming tools for
developing Java applications.
The Java Runtime Environment provides the minimum requirements for
executing a Java application; it consists of the Java Virtual Machine
(JVM), core classes, and supporting files.
First Hello World Program
HelloWorld.java
public class HelloWorld {
public static void main(String args[]) {
System.out.println(“Hello World Java Program”);
}
}
Compile And Execute
● Set JAVA path and classpath
● Compile
javac HelloWorld.java
java HelloWorld
Java - Decision Making
The if Statement
Syntax :
if(condition)
Statement;
else
Statement;
Example :
if (num < 100)
System.out.println(“Number is less than 100”);
else
System.out.println(“Number is greater than 100”)
Java - Loop Control
The For Loop
for (initialization; condition; iteration)
statement;
Example :
int x;
for (x = 0; x < 10; x = x + 1) {
System.out.println(“Current Value of X: ” + x);
}

More Related Content

What's hot (20)

PDF
Core Java
Prakash Dimmita
 
PDF
Introducing Java 7
Markus Eisele
 
PPTX
Core Java introduction | Basics | free course
Kernel Training
 
PDF
Learn Java Part 1
Gurpreet singh
 
DOCX
Introduction to java
jayc8586
 
PPSX
Introduction to java
Ajay Sharma
 
PPT
Java basic introduction
Ideal Eyes Business College
 
PDF
Introduction to java technology
Indika Munaweera Kankanamge
 
PPTX
Introduction to java
Java Lover
 
PDF
Basic java tutorial
Pedro De Almeida
 
PPT
Chapter 1 introduction to java technology
sshhzap
 
PDF
What Is Java | Java Tutorial | Java Programming | Learn Java | Edureka
Edureka!
 
PPTX
Java basic-tutorial for beginners
Muzammil Ali
 
PDF
What is-java
Shahid Rasheed
 
PPT
Fundamentals of JAVA
KUNAL GADHIA
 
PPT
Java introduction
Sagar Verma
 
PDF
Chapter 1. java programming language overview
Jong Soon Bok
 
PPT
1 Introduction To Java Technology
dM Technologies
 
PPTX
Introduction to java
Veerabadra Badra
 
PPTX
Introduction to JAVA
Md. Tanvir Hossain
 
Core Java
Prakash Dimmita
 
Introducing Java 7
Markus Eisele
 
Core Java introduction | Basics | free course
Kernel Training
 
Learn Java Part 1
Gurpreet singh
 
Introduction to java
jayc8586
 
Introduction to java
Ajay Sharma
 
Java basic introduction
Ideal Eyes Business College
 
Introduction to java technology
Indika Munaweera Kankanamge
 
Introduction to java
Java Lover
 
Basic java tutorial
Pedro De Almeida
 
Chapter 1 introduction to java technology
sshhzap
 
What Is Java | Java Tutorial | Java Programming | Learn Java | Edureka
Edureka!
 
Java basic-tutorial for beginners
Muzammil Ali
 
What is-java
Shahid Rasheed
 
Fundamentals of JAVA
KUNAL GADHIA
 
Java introduction
Sagar Verma
 
Chapter 1. java programming language overview
Jong Soon Bok
 
1 Introduction To Java Technology
dM Technologies
 
Introduction to java
Veerabadra Badra
 
Introduction to JAVA
Md. Tanvir Hossain
 

Viewers also liked (6)

PPT
Aula De Impresso Francisca
molequinha
 
PDF
Algebra 9-klas-malovanij
freegdz
 
PDF
Object oriented principles
onewomanmore witl
 
PDF
Selenium IDE features
onewomanmore witl
 
DOCX
Selenium Basics
onewomanmore witl
 
PDF
Refresh software testing concepts
onewomanmore witl
 
Aula De Impresso Francisca
molequinha
 
Algebra 9-klas-malovanij
freegdz
 
Object oriented principles
onewomanmore witl
 
Selenium IDE features
onewomanmore witl
 
Selenium Basics
onewomanmore witl
 
Refresh software testing concepts
onewomanmore witl
 
Ad

Similar to Basics of java (20)

PDF
Java Basic.pdf
TechSearchWeb
 
PDF
TechSearchWeb.pdf
TechSearchWeb
 
PDF
Technology Tutorial.pdf
TechSearchWeb
 
PDF
TechSearchWeb Tutorials.pdf
TechSearchWeb
 
PPTX
JAVAPart1_BasicIntroduction.pptx
Murugesh33
 
PPTX
JAVA_Day1_BasicIntroduction.pptx
Murugesh33
 
PDF
What is java
javaicon
 
PPTX
Java Programming Tutorials Basic to Advanced 1
JALALUDHEENVK1
 
PDF
Java - At a glance
Nitish Baranwal
 
PPTX
Programming in java ppt
MrsRLakshmiIT
 
PPTX
Programming in java ppt
MrsRBoomadeviIT
 
PPTX
Chapter 1 java
Ahmad sohail Kakar
 
PDF
1._Java_Fundamental.pptx.pdf
luxasuhi
 
PPTX
Java chapter 1 basic introduction Unit-1.pptx
noosdysharma
 
PPTX
Lecture-2.pptx sensor design and signal processing using RF and THz sensing, ...
MuhammadUsmanYaseen2
 
PPTX
Object Oriented Programming Part 1 of Unit 1
VigneshkumarPonnusam1
 
PPSX
JAVA.ppsx java code java edv java development
wannabekrishna0
 
PDF
JAVA BOOK BY SIVASANKARI
SivaSankari36
 
PPTX
1- Introduction to java
Ghadeer AlHasan
 
PPTX
java basics.pptx
mlakshumaiah
 
Java Basic.pdf
TechSearchWeb
 
TechSearchWeb.pdf
TechSearchWeb
 
Technology Tutorial.pdf
TechSearchWeb
 
TechSearchWeb Tutorials.pdf
TechSearchWeb
 
JAVAPart1_BasicIntroduction.pptx
Murugesh33
 
JAVA_Day1_BasicIntroduction.pptx
Murugesh33
 
What is java
javaicon
 
Java Programming Tutorials Basic to Advanced 1
JALALUDHEENVK1
 
Java - At a glance
Nitish Baranwal
 
Programming in java ppt
MrsRLakshmiIT
 
Programming in java ppt
MrsRBoomadeviIT
 
Chapter 1 java
Ahmad sohail Kakar
 
1._Java_Fundamental.pptx.pdf
luxasuhi
 
Java chapter 1 basic introduction Unit-1.pptx
noosdysharma
 
Lecture-2.pptx sensor design and signal processing using RF and THz sensing, ...
MuhammadUsmanYaseen2
 
Object Oriented Programming Part 1 of Unit 1
VigneshkumarPonnusam1
 
JAVA.ppsx java code java edv java development
wannabekrishna0
 
JAVA BOOK BY SIVASANKARI
SivaSankari36
 
1- Introduction to java
Ghadeer AlHasan
 
java basics.pptx
mlakshumaiah
 
Ad

Recently uploaded (20)

PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 

Basics of java

  • 2. History ● Most of the character of Java is inherited from two languages. From C, Java derives its syntax. Many of Java’s Object - Oriented features were influenced by C++. ● Java was started as a project by James Gosling, Patrick Naughton, Chris Warth, Ed Frank and Mike Sheridan at Sun Microsystems, Inc. in 1991. ● This language was initially called “Oak”, but was renamed as “Java” in 1995.
  • 3. Characteristics Of Java ● Portable ● Security ● Object Oriented ● Robust ● Multithreaded ● Architecture Neutral ● Distributed ● Dynamic
  • 5. JVM (Java Virtual Machine) Bytecodes are the machine language of the Java virtual machine. JVM (Java Virtual Machine) is an abstract machine. It is a specification that provides runtime environment in which java bytecode can be executed.
  • 6. JDK (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.
  • 7. JRE (Java Runtime Environment) The Java Runtime Environment (JRE), also known as Java Runtime, is part of the Java Development Kit (JDK), a set of programming tools for developing Java applications. The Java Runtime Environment provides the minimum requirements for executing a Java application; it consists of the Java Virtual Machine (JVM), core classes, and supporting files.
  • 8. First Hello World Program HelloWorld.java public class HelloWorld { public static void main(String args[]) { System.out.println(“Hello World Java Program”); } }
  • 9. Compile And Execute ● Set JAVA path and classpath ● Compile javac HelloWorld.java java HelloWorld
  • 10. Java - Decision Making The if Statement Syntax : if(condition) Statement; else Statement; Example : if (num < 100) System.out.println(“Number is less than 100”); else System.out.println(“Number is greater than 100”)
  • 11. Java - Loop Control The For Loop for (initialization; condition; iteration) statement; Example : int x; for (x = 0; x < 10; x = x + 1) { System.out.println(“Current Value of X: ” + x); }