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)

PPTX
Digital Circuits, important subject in CS
contactparinay1
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Digital Circuits, important subject in CS
contactparinay1
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 

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); }