SlideShare a Scribd company logo
1 of 12
JAVA
Abdulwahab M.Salh
ADVANTAGE OF JAVA
Java is simple
Java is object-oriented
Java is distributed
Java is interpreted
Java is robust
Java is secure
Java is portable
Java’s performance
Java is multithreaded
Java is dynamic
2
A SIMPLE APPLICATION
Example
//This application program prints Welcome
//to Java!
package slide1;
public class Welcome}
public static void main(String[] args( }
System.out.println("Welcome to Java!"(;
}
}
3
STRUCTURE OF A JAVA
PROGRAM
Comments
Reserved words
Modifiers
Statements
Blocks
Classes
Methods
The main method
The exit method
4
COMMENTS
In Java, comments are preceded
by two slashes (//) in a line,
or enclosed between /* and */ in
one or multiple lines. When the
compiler sees //, it ignores all
text after // in the same line.
When it sees /*, it scans for
the next */ and ignores any text
between /* and*/.
5
RESERVED WORDS
Their use will be Reserved words
or keywords are words that have
a specific meaning to the
compiler and cannot be used for
other purposes in the program.
6
MODIFIERS
Java uses certain reserved words called
modifiers that specify the properties of the
data, methods, and classes and how they
can be used. Examples of modifiers are
public and static. Other modifiers are
private, final, abstract, and protected.
public
7
STATEMENTS
A statement represents an
action or a sequence of
actions. Every statement in
Java ends with a semicolon);(.
8
BLOCKS 9
A pair of braces in a program
forms a block that groups
CLASSES
The class is the essential Java
construct. A class is a template
or blueprint for objects.
A java program is defined by
using one or more classes.
10
METHODS
What is System.out.println? It is a
method: a collection of statements
that performs a sequence of
operations to display a message on
the console.
11
DISADVANTAGES OF JAVA
 Java Takes More Memory Space.
Java need Translator.
Java Takes more Time to execution 
From Low-level – language. 
Java need Special environment. 
12

More Related Content

What's hot

1 2 java development
1 2 java development1 2 java development
1 2 java development
Ken Kretsch
 

What's hot (19)

Introduction to Loops in Java | For, While, Do While, Infinite Loops | Edureka
Introduction to Loops in Java | For, While, Do While, Infinite Loops | EdurekaIntroduction to Loops in Java | For, While, Do While, Infinite Loops | Edureka
Introduction to Loops in Java | For, While, Do While, Infinite Loops | Edureka
 
Concepts of core java
Concepts of core javaConcepts of core java
Concepts of core java
 
01slide
01slide01slide
01slide
 
Features of java - javatportal
Features of java - javatportalFeatures of java - javatportal
Features of java - javatportal
 
Features of JAVA Programming Language.
Features of JAVA Programming Language.Features of JAVA Programming Language.
Features of JAVA Programming Language.
 
computer science JAVA ppt
computer science JAVA pptcomputer science JAVA ppt
computer science JAVA ppt
 
Java PPT
Java PPTJava PPT
Java PPT
 
Advantages of java
Advantages of javaAdvantages of java
Advantages of java
 
Bca 4020 java programming
Bca 4020   java programmingBca 4020   java programming
Bca 4020 java programming
 
Introduction to Java -unit-1
Introduction to Java -unit-1Introduction to Java -unit-1
Introduction to Java -unit-1
 
1 2 java development
1 2 java development1 2 java development
1 2 java development
 
Java introduction
Java introductionJava introduction
Java introduction
 
8 most expected java interview questions
8 most expected java interview questions8 most expected java interview questions
8 most expected java interview questions
 
java token
java tokenjava token
java token
 
Learn Java with Dr. Rifat Shahriyar
Learn Java with Dr. Rifat ShahriyarLearn Java with Dr. Rifat Shahriyar
Learn Java with Dr. Rifat Shahriyar
 
JAVA PPT by NAVEEN TOKAS
JAVA PPT by NAVEEN TOKASJAVA PPT by NAVEEN TOKAS
JAVA PPT by NAVEEN TOKAS
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Object Oriented Programming - 3. Java Programming
Object Oriented Programming - 3. Java ProgrammingObject Oriented Programming - 3. Java Programming
Object Oriented Programming - 3. Java Programming
 
Java programming(unit 1)
Java programming(unit 1)Java programming(unit 1)
Java programming(unit 1)
 

Similar to Java Language

01slide (1)ffgfefge
01slide (1)ffgfefge01slide (1)ffgfefge
01slide (1)ffgfefge
bsnl007
 
Cso gaddis java_chapter2
Cso gaddis java_chapter2Cso gaddis java_chapter2
Cso gaddis java_chapter2
mlrbrown
 
Interfaces In Java
Interfaces In JavaInterfaces In Java
Interfaces In Java
parag
 

Similar to Java Language (20)

Java intro
Java introJava intro
Java intro
 
Java course-in-mumbai
Java course-in-mumbaiJava course-in-mumbai
Java course-in-mumbai
 
Basics of java 1
Basics of java 1Basics of java 1
Basics of java 1
 
Java features
Java featuresJava features
Java features
 
Unit of competency
Unit of competencyUnit of competency
Unit of competency
 
Javaprogbasics
JavaprogbasicsJavaprogbasics
Javaprogbasics
 
Java syntax-and-grammars-oct8
Java syntax-and-grammars-oct8Java syntax-and-grammars-oct8
Java syntax-and-grammars-oct8
 
Core java-introduction
Core java-introductionCore java-introduction
Core java-introduction
 
01slide (1)ffgfefge
01slide (1)ffgfefge01slide (1)ffgfefge
01slide (1)ffgfefge
 
Java_Roadmap.pptx
Java_Roadmap.pptxJava_Roadmap.pptx
Java_Roadmap.pptx
 
lecture 6
 lecture 6 lecture 6
lecture 6
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer science
 
Java for Mainframers
Java for MainframersJava for Mainframers
Java for Mainframers
 
JAVA PROGRAMMING
JAVA PROGRAMMINGJAVA PROGRAMMING
JAVA PROGRAMMING
 
Cso gaddis java_chapter2
Cso gaddis java_chapter2Cso gaddis java_chapter2
Cso gaddis java_chapter2
 
1
11
1
 
Professional-core-java-training
Professional-core-java-trainingProfessional-core-java-training
Professional-core-java-training
 
OOP with Java
OOP with JavaOOP with Java
OOP with Java
 
Java Interview Questions
Java Interview QuestionsJava Interview Questions
Java Interview Questions
 
Interfaces In Java
Interfaces In JavaInterfaces In Java
Interfaces In Java
 

Recently uploaded

Lipids: types, structure and important functions.
Lipids: types, structure and important functions.Lipids: types, structure and important functions.
Lipids: types, structure and important functions.
Cherry
 
COMPOSTING : types of compost, merits and demerits
COMPOSTING : types of compost, merits and demeritsCOMPOSTING : types of compost, merits and demerits
COMPOSTING : types of compost, merits and demerits
Cherry
 
PODOCARPUS...........................pptx
PODOCARPUS...........................pptxPODOCARPUS...........................pptx
PODOCARPUS...........................pptx
Cherry
 
LUNULARIA -features, morphology, anatomy ,reproduction etc.
LUNULARIA -features, morphology, anatomy ,reproduction etc.LUNULARIA -features, morphology, anatomy ,reproduction etc.
LUNULARIA -features, morphology, anatomy ,reproduction etc.
Cherry
 
Human genetics..........................pptx
Human genetics..........................pptxHuman genetics..........................pptx
Human genetics..........................pptx
Cherry
 
Cyathodium bryophyte: morphology, anatomy, reproduction etc.
Cyathodium bryophyte: morphology, anatomy, reproduction etc.Cyathodium bryophyte: morphology, anatomy, reproduction etc.
Cyathodium bryophyte: morphology, anatomy, reproduction etc.
Cherry
 
The Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptxThe Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptx
seri bangash
 

Recently uploaded (20)

Lipids: types, structure and important functions.
Lipids: types, structure and important functions.Lipids: types, structure and important functions.
Lipids: types, structure and important functions.
 
Selaginella: features, morphology ,anatomy and reproduction.
Selaginella: features, morphology ,anatomy and reproduction.Selaginella: features, morphology ,anatomy and reproduction.
Selaginella: features, morphology ,anatomy and reproduction.
 
COMPOSTING : types of compost, merits and demerits
COMPOSTING : types of compost, merits and demeritsCOMPOSTING : types of compost, merits and demerits
COMPOSTING : types of compost, merits and demerits
 
Use of mutants in understanding seedling development.pptx
Use of mutants in understanding seedling development.pptxUse of mutants in understanding seedling development.pptx
Use of mutants in understanding seedling development.pptx
 
PODOCARPUS...........................pptx
PODOCARPUS...........................pptxPODOCARPUS...........................pptx
PODOCARPUS...........................pptx
 
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptx
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptxClimate Change Impacts on Terrestrial and Aquatic Ecosystems.pptx
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptx
 
LUNULARIA -features, morphology, anatomy ,reproduction etc.
LUNULARIA -features, morphology, anatomy ,reproduction etc.LUNULARIA -features, morphology, anatomy ,reproduction etc.
LUNULARIA -features, morphology, anatomy ,reproduction etc.
 
GBSN - Biochemistry (Unit 2) Basic concept of organic chemistry
GBSN - Biochemistry (Unit 2) Basic concept of organic chemistry GBSN - Biochemistry (Unit 2) Basic concept of organic chemistry
GBSN - Biochemistry (Unit 2) Basic concept of organic chemistry
 
Understanding Partial Differential Equations: Types and Solution Methods
Understanding Partial Differential Equations: Types and Solution MethodsUnderstanding Partial Differential Equations: Types and Solution Methods
Understanding Partial Differential Equations: Types and Solution Methods
 
Efficient spin-up of Earth System Models usingsequence acceleration
Efficient spin-up of Earth System Models usingsequence accelerationEfficient spin-up of Earth System Models usingsequence acceleration
Efficient spin-up of Earth System Models usingsequence acceleration
 
Plasmid: types, structure and functions.
Plasmid: types, structure and functions.Plasmid: types, structure and functions.
Plasmid: types, structure and functions.
 
Human genetics..........................pptx
Human genetics..........................pptxHuman genetics..........................pptx
Human genetics..........................pptx
 
module for grade 9 for distance learning
module for grade 9 for distance learningmodule for grade 9 for distance learning
module for grade 9 for distance learning
 
Cyathodium bryophyte: morphology, anatomy, reproduction etc.
Cyathodium bryophyte: morphology, anatomy, reproduction etc.Cyathodium bryophyte: morphology, anatomy, reproduction etc.
Cyathodium bryophyte: morphology, anatomy, reproduction etc.
 
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryFAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
 
Site specific recombination and transposition.........pdf
Site specific recombination and transposition.........pdfSite specific recombination and transposition.........pdf
Site specific recombination and transposition.........pdf
 
Daily Lesson Log in Science 9 Fourth Quarter Physics
Daily Lesson Log in Science 9 Fourth Quarter PhysicsDaily Lesson Log in Science 9 Fourth Quarter Physics
Daily Lesson Log in Science 9 Fourth Quarter Physics
 
The Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptxThe Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptx
 
Taphonomy and Quality of the Fossil Record
Taphonomy and Quality of the  Fossil RecordTaphonomy and Quality of the  Fossil Record
Taphonomy and Quality of the Fossil Record
 
Dr. E. Muralinath_ Blood indices_clinical aspects
Dr. E. Muralinath_ Blood indices_clinical  aspectsDr. E. Muralinath_ Blood indices_clinical  aspects
Dr. E. Muralinath_ Blood indices_clinical aspects
 

Java Language

  • 2. ADVANTAGE OF JAVA Java is simple Java is object-oriented Java is distributed Java is interpreted Java is robust Java is secure Java is portable Java’s performance Java is multithreaded Java is dynamic 2
  • 3. A SIMPLE APPLICATION Example //This application program prints Welcome //to Java! package slide1; public class Welcome} public static void main(String[] args( } System.out.println("Welcome to Java!"(; } } 3
  • 4. STRUCTURE OF A JAVA PROGRAM Comments Reserved words Modifiers Statements Blocks Classes Methods The main method The exit method 4
  • 5. COMMENTS In Java, comments are preceded by two slashes (//) in a line, or enclosed between /* and */ in one or multiple lines. When the compiler sees //, it ignores all text after // in the same line. When it sees /*, it scans for the next */ and ignores any text between /* and*/. 5
  • 6. RESERVED WORDS Their use will be Reserved words or keywords are words that have a specific meaning to the compiler and cannot be used for other purposes in the program. 6
  • 7. MODIFIERS Java uses certain reserved words called modifiers that specify the properties of the data, methods, and classes and how they can be used. Examples of modifiers are public and static. Other modifiers are private, final, abstract, and protected. public 7
  • 8. STATEMENTS A statement represents an action or a sequence of actions. Every statement in Java ends with a semicolon);(. 8
  • 9. BLOCKS 9 A pair of braces in a program forms a block that groups
  • 10. CLASSES The class is the essential Java construct. A class is a template or blueprint for objects. A java program is defined by using one or more classes. 10
  • 11. METHODS What is System.out.println? It is a method: a collection of statements that performs a sequence of operations to display a message on the console. 11
  • 12. DISADVANTAGES OF JAVA  Java Takes More Memory Space. Java need Translator. Java Takes more Time to execution  From Low-level – language.  Java need Special environment.  12

Editor's Notes

  1. First Class: Introduction, Prerequisites, Advices, Syllabus Lab 1: Create a Java Project, Compile, and Run. Show syntax errors Print program Capture screen shots, and save it in Word, and print it. Homework One: Check in the class randomly.