SlideShare a Scribd company logo
1 of 48
Download to read offline
INTRODUCTION
TO JAVA
IVY BACOLONGAN
JAVA HISTORY
JAVA TERMINOLOGY
FEATURES OF JAVA
JAVA BASIC SYNTAX
JAVA IDENTIFIER
VARIABLES & DATA
TYPES IN JAVA
TOPIC
OUTLINE
JAVA
- was developed by James Gosling at Sun
Microsystems Inc, later acquired by Oracle
Corporation.
- It is a simple programming language
- Java is a class-based, object-oriented programming language
and is designed to have as few implementation dependencies
as possible.
- A general-purpose programming language made for
developers to write once run anywhere that is compiled Java
code can run on all platforms that support Java.
- Java applications are compiled to byte code that can run on
any Java Virtual Machine. The syntax of Java is similar to
c/c++.
James Gosling, Mike Sheridan, and Patrick
Naughton, a team of Sun engineers known as
the Green team initiated the Java language
Sun Microsystems released its first public implementation in
1996 as Java 1.0. It was re-written by Arthur Van Hoff to
strictly comply with its specifications
Sun generated revenue from Java through the
selling of licenses for specialized products
such as the Java Enterprise System.
JAVA LANGUAGE
1991
1996
1997
JAVA 1.0
JAVA ENTERPRISE SYSTEM.
HISTORY
Sun released much of its Java virtual machine
as free, open-source software
Sun finished the process, making all of its JVM’s core code
available under open-source distribution terms.
NOVEMBER 13, 2006
2006
2007 MAY 8, 2007
HISTORY
Java was developed by James Gosling, who is
known as the Father of Java.
JAVA
1995
2007
HISTORY
The principles for creating java were simple, robust,
secured, high performance, portable, multi-threaded,
interpreted, dynamic, etc
JAVA PROGRAMMING LANGUAGE
IS NAMED JAVA. WHY?


After the name OAK, the team decided to give a new name to it and
the suggested words were Silk, Jolt, revolutionary, DNA, dynamic, etc.
These all names were easy to spell and fun to say, but they all wanted
the name to reflect the essence of technology. In accordance with
James Gosling, Java the among the top names along with Silk, and
since java was a unique name so most of them preferred it.
Java is the name of an island in Indonesia where the first
coffee(named java coffee) was produced. And this name was chosen
by James Gosling while having coffee near his office. Note that Java is
just a name, not an acronym.
JAVA
TERMINOLOGY
Java Virtual Machine(JVM)
Bytecode in the Development
process
Java Development Kit(JDK)
Java Runtime Environment (JRE)
Garbage Collector
ClassPath
MAIN FEATURES
OF JAVA
Platform Independent
Object-Oriented Programming
Language
Simple
Robust
Secure
Distributed
Multithreading
Portable
High Performance
MAIN FEATURES
OF JAVA
Sandbox Execution
Write Once Run Anywhere
Power of compilation and
interpretation
JAVA BASIC
SYNTAX
Java program is a collection of objects,
and these objects communicate through
method calls to each other to work
together.
BASIC
TERMINOLOGIES
IN JAVA


Class
Object
Method
Instance Variables
CLASS
The class is a blueprint (plan) of the instance
of a class (object). It can be defined as a
template that describes the data and
behavior associated with its instance.
Example:
Blueprint of the house is class.
OBJECT
The object is an instance of a class. It is an
entity that has behavior and state.
A car is an object whose states are: brand,
color, and number plate.
Running on the road.
Example:
Behavior:
METHOD
The behavior of an object is the method.
The fuel indicator indicates the amount of
fuel left in the car.
Example:
INSTANCE
VARIABLES
Every object has its own unique set of
instance variables. The state of an object is
generally created by the values that are
assigned to these instance variables.
Steps to compile and
run a java program in
a console
Example:
SYNTAX
Source File Name
Case Sensitivity
Class Name
public static void main(String [] args)
Methods Name
Identifiers in Java
White Spaces in Java
Java Keywords
SOURCE FILENAME
CASE SENSITIVITY
CLASS
NAMES
PUBLIC STATIC VOID
MAIN(STRING [] ARGS)
METHOD NAMES
IDENTIFIERS
IN
JAVA
WHITE SPACES IN JAVA
JAVA KEYWORDS
JAVA IDENTIFIERS
JAVA IDENTIFIERS
JAVA IDENTIFIERS
JAVA IDENTIFIERS
CONTINUATION ON
NEXT SLIDE.....

More Related Content

Similar to INTRO TO JAVA.pdf

JAVA BOOK BY SIVASANKARI
JAVA BOOK BY SIVASANKARIJAVA BOOK BY SIVASANKARI
JAVA BOOK BY SIVASANKARISivaSankari36
 
Overview of Java.pdf
Overview of Java.pdfOverview of Java.pdf
Overview of Java.pdfnani19981
 
Overview of Java (1).pdf
Overview of Java (1).pdfOverview of Java (1).pdf
Overview of Java (1).pdfnaninaveen26
 
winter training java .pptx
winter training java .pptxwinter training java .pptx
winter training java .pptxAnshum9
 
PROGRAMMING IN JAVA unit 1.pptx
PROGRAMMING IN JAVA unit 1.pptxPROGRAMMING IN JAVA unit 1.pptx
PROGRAMMING IN JAVA unit 1.pptxSeethaDinesh
 
Introduction to java
Introduction to java Introduction to java
Introduction to java Sandeep Rawat
 
Technology Tutorial.pdf
Technology Tutorial.pdfTechnology Tutorial.pdf
Technology Tutorial.pdfTechSearchWeb
 
TechSearchWeb Tutorials.pdf
TechSearchWeb Tutorials.pdfTechSearchWeb Tutorials.pdf
TechSearchWeb Tutorials.pdfTechSearchWeb
 
How To Find Resumes On Google | Boolean Search | Image Search Java Developer...
How To Find Resumes On Google  | Boolean Search | Image Search Java Developer...How To Find Resumes On Google  | Boolean Search | Image Search Java Developer...
How To Find Resumes On Google | Boolean Search | Image Search Java Developer...TheStaffingCircle
 
Training on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan SanidhyaTraining on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan SanidhyaShravan Sanidhya
 
Java vs JavaScript | Edureka
Java vs JavaScript | EdurekaJava vs JavaScript | Edureka
Java vs JavaScript | EdurekaEdureka!
 
The history and future of java programming language
The history and future of java programming languageThe history and future of java programming language
The history and future of java programming languagePreeti Agarwal
 

Similar to INTRO TO JAVA.pdf (20)

1 .java basic
1 .java basic1 .java basic
1 .java basic
 
JAVA BOOK BY SIVASANKARI
JAVA BOOK BY SIVASANKARIJAVA BOOK BY SIVASANKARI
JAVA BOOK BY SIVASANKARI
 
Overview of Java.pdf
Overview of Java.pdfOverview of Java.pdf
Overview of Java.pdf
 
Overview of Java (1).pdf
Overview of Java (1).pdfOverview of Java (1).pdf
Overview of Java (1).pdf
 
winter training java .pptx
winter training java .pptxwinter training java .pptx
winter training java .pptx
 
Introduction of java
Introduction  of javaIntroduction  of java
Introduction of java
 
java basics.pptx
java basics.pptxjava basics.pptx
java basics.pptx
 
Java - At a glance
Java - At a glanceJava - At a glance
Java - At a glance
 
PROGRAMMING IN JAVA unit 1.pptx
PROGRAMMING IN JAVA unit 1.pptxPROGRAMMING IN JAVA unit 1.pptx
PROGRAMMING IN JAVA unit 1.pptx
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
 
TechSearchWeb.pdf
TechSearchWeb.pdfTechSearchWeb.pdf
TechSearchWeb.pdf
 
Technology Tutorial.pdf
Technology Tutorial.pdfTechnology Tutorial.pdf
Technology Tutorial.pdf
 
TechSearchWeb Tutorials.pdf
TechSearchWeb Tutorials.pdfTechSearchWeb Tutorials.pdf
TechSearchWeb Tutorials.pdf
 
Java
JavaJava
Java
 
Presentation on Java Basic
Presentation on Java BasicPresentation on Java Basic
Presentation on Java Basic
 
How To Find Resumes On Google | Boolean Search | Image Search Java Developer...
How To Find Resumes On Google  | Boolean Search | Image Search Java Developer...How To Find Resumes On Google  | Boolean Search | Image Search Java Developer...
How To Find Resumes On Google | Boolean Search | Image Search Java Developer...
 
Training on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan SanidhyaTraining on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan Sanidhya
 
Java vs JavaScript | Edureka
Java vs JavaScript | EdurekaJava vs JavaScript | Edureka
Java vs JavaScript | Edureka
 
Java
JavaJava
Java
 
The history and future of java programming language
The history and future of java programming languageThe history and future of java programming language
The history and future of java programming language
 

Recently uploaded

Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
Spark3's new memory model/management
Spark3's new memory model/managementSpark3's new memory model/management
Spark3's new memory model/managementakshesh doshi
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystSamantha Rae Coolbeth
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSAishani27
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxFurkanTasci3
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...soniya singh
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Data Warehouse , Data Cube Computation
Data Warehouse   , Data Cube ComputationData Warehouse   , Data Cube Computation
Data Warehouse , Data Cube Computationsit20ad004
 
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...shivangimorya083
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 

Recently uploaded (20)

Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
Spark3's new memory model/management
Spark3's new memory model/managementSpark3's new memory model/management
Spark3's new memory model/management
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data Analyst
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICS
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptx
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Data Warehouse , Data Cube Computation
Data Warehouse   , Data Cube ComputationData Warehouse   , Data Cube Computation
Data Warehouse , Data Cube Computation
 
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 

INTRO TO JAVA.pdf

  • 2. JAVA HISTORY JAVA TERMINOLOGY FEATURES OF JAVA JAVA BASIC SYNTAX JAVA IDENTIFIER VARIABLES & DATA TYPES IN JAVA TOPIC OUTLINE
  • 3. JAVA - was developed by James Gosling at Sun Microsystems Inc, later acquired by Oracle Corporation. - It is a simple programming language - Java is a class-based, object-oriented programming language and is designed to have as few implementation dependencies as possible. - A general-purpose programming language made for developers to write once run anywhere that is compiled Java code can run on all platforms that support Java. - Java applications are compiled to byte code that can run on any Java Virtual Machine. The syntax of Java is similar to c/c++.
  • 4. James Gosling, Mike Sheridan, and Patrick Naughton, a team of Sun engineers known as the Green team initiated the Java language Sun Microsystems released its first public implementation in 1996 as Java 1.0. It was re-written by Arthur Van Hoff to strictly comply with its specifications Sun generated revenue from Java through the selling of licenses for specialized products such as the Java Enterprise System. JAVA LANGUAGE 1991 1996 1997 JAVA 1.0 JAVA ENTERPRISE SYSTEM. HISTORY
  • 5. Sun released much of its Java virtual machine as free, open-source software Sun finished the process, making all of its JVM’s core code available under open-source distribution terms. NOVEMBER 13, 2006 2006 2007 MAY 8, 2007 HISTORY
  • 6. Java was developed by James Gosling, who is known as the Father of Java. JAVA 1995 2007 HISTORY The principles for creating java were simple, robust, secured, high performance, portable, multi-threaded, interpreted, dynamic, etc
  • 7. JAVA PROGRAMMING LANGUAGE IS NAMED JAVA. WHY? After the name OAK, the team decided to give a new name to it and the suggested words were Silk, Jolt, revolutionary, DNA, dynamic, etc. These all names were easy to spell and fun to say, but they all wanted the name to reflect the essence of technology. In accordance with James Gosling, Java the among the top names along with Silk, and since java was a unique name so most of them preferred it. Java is the name of an island in Indonesia where the first coffee(named java coffee) was produced. And this name was chosen by James Gosling while having coffee near his office. Note that Java is just a name, not an acronym.
  • 8. JAVA TERMINOLOGY Java Virtual Machine(JVM) Bytecode in the Development process Java Development Kit(JDK) Java Runtime Environment (JRE) Garbage Collector ClassPath
  • 9.
  • 10.
  • 11.
  • 12.
  • 13. MAIN FEATURES OF JAVA Platform Independent Object-Oriented Programming Language Simple Robust Secure Distributed Multithreading Portable High Performance
  • 14. MAIN FEATURES OF JAVA Sandbox Execution Write Once Run Anywhere Power of compilation and interpretation
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26. JAVA BASIC SYNTAX Java program is a collection of objects, and these objects communicate through method calls to each other to work together.
  • 28. CLASS The class is a blueprint (plan) of the instance of a class (object). It can be defined as a template that describes the data and behavior associated with its instance. Example: Blueprint of the house is class.
  • 29. OBJECT The object is an instance of a class. It is an entity that has behavior and state. A car is an object whose states are: brand, color, and number plate. Running on the road. Example: Behavior:
  • 30. METHOD The behavior of an object is the method. The fuel indicator indicates the amount of fuel left in the car. Example:
  • 31. INSTANCE VARIABLES Every object has its own unique set of instance variables. The state of an object is generally created by the values that are assigned to these instance variables. Steps to compile and run a java program in a console Example:
  • 32. SYNTAX Source File Name Case Sensitivity Class Name public static void main(String [] args) Methods Name Identifiers in Java White Spaces in Java Java Keywords
  • 33.
  • 42.
  • 47.