SlideShare uma empresa Scribd logo
1 de 17
D.SEETHALAKSHMI
Assistant Professor
Department of Computer Applications
Bon Secours College for Women

 Java is a high-level general-purpose object-oriented
and secure programming language developed by
James Gosling at Sun Microsystems Inc. in 1991.
 It is formally known as OAK. In 1995 Sun
Microsystem changed the name to Java.
 In 2009 Sun Microsystem takeover by Oracle
Corporation.
What is JAVA?

 Java Standard Editions (JSE): It is used to create
programs for a desktop computer.
 Java Enterprise Edition (JEE): It is used to create
large programs that run on the server and manages
heavy traffic and complex transactions.
 Java Micro Edition (JME): It is used to develop
applications for small devices such as set-top boxes
phone and appliances.
Editions of Java

 Standalone Applications: Java standalone applications uses GUI
components such as AWT Swing and JavaFX. These components
contain buttons list menu scroll panel etc. It is also known as
desktop alienations.
 Enterprise Applications: An application which is distributed in nature
is called enterprise applications.
 Web Applications: An applications that run on the server is called
web applications. We use JSP Servlet Spring and Hibernate
technologies for creating web applications.
 Mobile Applications: Java ME is a cross-platform to develop mobile
applications which run across smartphones. Java is a platform for App
Development in Android.
Types of Java Applications

 Java Platform is a collection of programs. It helps to
develop and run a program written in the Java
programming language. Java Platform includes an
execution engine a compiler and set of libraries. Java
is a platform-independent language.
Java Platform

 There are 3 stages in developing a Java Program:
 What’s coding – Developing a java program (set of instructions)
according to Java syntax or rules is called coding. Java
programs should always be saved with a filename.java
extension.
 What’s compilation – Converting the java program into byte
codes or .class file using javac compiler is called compilation.
Whenever we compile a java program a .class file will be
generated and it will have byte codes in it.
 What’s execution- Converting the byte codes present in the
.class file into CPU understandable instructions or binaries
using Java Virtual Machine (JVM) which is an interpreter is
called execution.
Stage of Java

JAVA PHASES

 Simple
 Robust
 Portable
 Platform-independent
 Secured
 High Performance
 Multithreaded
 Architecture Neutral
 Object-Oriented Interpreted
 Dynamic
Principles of Java

 The history of Java starts with the Green
Team.
 Java team members (also known as
Green Team) initiated this project to
develop a language for digital devices
such as set-top boxes televisions etc.
 Java was developed by James Gosling,
who is known as the father of Java, in
1995. James Gosling and his team
members started the project in the early
'90s.
History of Java

 1) James Gosling, Mike Sheridan, and Patrick
Naughton initiated the Java language project in June 1991.
The small team of sun engineers called Green Team.
 2) Initially it was designed for small, embedded systems in
electronic appliances like set-top boxes.
 3) Firstly, it was called "Greentalk" by James Gosling, and
the file extension was .gt.
 4) After that, it was called Oak and was developed as a
part of the Green project.
History of Java

 5) Why Oak? Oak is a symbol
of strength and chosen as a
national tree of many countries
like the U.S.A., France,
Germany, Romania, etc.
 6) In 1995, Oak was renamed
as "Java" because it was already
a trademark by Oak
Technologies.
Why Java was named as
"Oak"?

 Java is an island in Indonesia where the first coffee
was produced (called Java coffee). It is a kind of
espresso bean. Java name was chosen by James
Gosling while having a cup of coffee nearby his
office.
 In 1995, Time magazine called Java one of the Ten
Best Products of 1995.
Why Java Programming
named "Java"?


Features of Java

Elements of Java

 Object-oriented programming is a way of solving a
complex problem by breaking them into a small sub-
problem. An object is a real-world entity. It is easier to
develop a program by using an object. In OOPs, we create
programs using class and object in a structured manner.
 Class: A class is a template or blueprint or prototype that
defines data members and methods of an object. An object
is the instance of the class. We can define a class by using
the class keyword.
 Object: An object is a real-world entity that can be
identified distinctly. For example, a desk, a circle can be
considered as objects. An object has a unique behavior,
identity, and state. Data fields with their current values
represent the state of an object (also known as its
properties or attributes).
Object Oriented
Programming System

 Abstraction: An abstraction is a method of hiding
irrelevant information from the user. For example, the
driver only knows how to drive a car; there is no need to
know how does the car run. We can make a class abstract
by using the keyword abstract. In Java, we use abstract
class and interface to achieve abstraction.
 Encapsulation: An encapsulation is the process of
binding data and functions into a single unit. A class is an
example of encapsulation. In Java, Java bean is a fully
encapsulated class.
 Inheritance: Inheritance is the mechanism in which one
class acquire all the features of another class. We can
achieve inheritance by using the extends keyword. It
facilitates the reusability of the code.
 Polymorphism: The polymorphism is the ability to
appear in many forms. In other words, single action in
different ways. For example, a boy in the classroom
behaves like a student, in house behaves like a son. There
are two types of polymorphism: run time polymorphism
and compile-time polymorphism.

Mais conteúdo relacionado

Mais procurados

Chapter 3 servlet & jsp
Chapter 3 servlet & jspChapter 3 servlet & jsp
Chapter 3 servlet & jsp
Jafar Nesargi
 
Object-Oriented Programming with Java UNIT 1
Object-Oriented Programming with Java UNIT 1Object-Oriented Programming with Java UNIT 1
Object-Oriented Programming with Java UNIT 1
SURBHI SAROHA
 
Genesis and Overview of Java
Genesis and Overview of Java Genesis and Overview of Java
Genesis and Overview of Java
Ravi_Kant_Sahu
 

Mais procurados (20)

Chapter 3 servlet & jsp
Chapter 3 servlet & jspChapter 3 servlet & jsp
Chapter 3 servlet & jsp
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Object-Oriented Programming with Java UNIT 1
Object-Oriented Programming with Java UNIT 1Object-Oriented Programming with Java UNIT 1
Object-Oriented Programming with Java UNIT 1
 
Presentation on-exception-handling
Presentation on-exception-handlingPresentation on-exception-handling
Presentation on-exception-handling
 
JRE , JDK and platform independent nature of JAVA
JRE , JDK and platform independent nature of JAVAJRE , JDK and platform independent nature of JAVA
JRE , JDK and platform independent nature of JAVA
 
Java History
Java HistoryJava History
Java History
 
Features of java
Features of javaFeatures of java
Features of java
 
Genesis and Overview of Java
Genesis and Overview of Java Genesis and Overview of Java
Genesis and Overview of Java
 
Java Notes
Java NotesJava Notes
Java Notes
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Android Application Development Using Java
Android Application Development Using JavaAndroid Application Development Using Java
Android Application Development Using Java
 
Enumeration in Java Explained | Java Tutorial | Edureka
Enumeration in Java Explained | Java Tutorial | EdurekaEnumeration in Java Explained | Java Tutorial | Edureka
Enumeration in Java Explained | Java Tutorial | Edureka
 
Core java complete ppt(note)
Core java  complete  ppt(note)Core java  complete  ppt(note)
Core java complete ppt(note)
 
Android share preferences
Android share preferencesAndroid share preferences
Android share preferences
 
Java Presentation For Syntax
Java Presentation For SyntaxJava Presentation For Syntax
Java Presentation For Syntax
 
Basic of Java
Basic of JavaBasic of Java
Basic of Java
 
java ppt.pdf
java ppt.pdfjava ppt.pdf
java ppt.pdf
 
Java tutorial PPT
Java tutorial PPTJava tutorial PPT
Java tutorial PPT
 
GUI Programming In Java
GUI Programming In JavaGUI Programming In Java
GUI Programming In Java
 

Semelhante a PROGRAMMING IN JAVA unit 1.pptx

Java Basic.pdf
Java Basic.pdfJava Basic.pdf
Java Basic.pdf
TechSearchWeb
 

Semelhante a PROGRAMMING IN JAVA unit 1.pptx (20)

Java
JavaJava
Java
 
1 .java basic
1 .java basic1 .java basic
1 .java basic
 
Basics of JAVA programming
Basics of JAVA programmingBasics of JAVA programming
Basics of JAVA programming
 
Java PPT
Java PPTJava PPT
Java PPT
 
Java basics
Java basicsJava basics
Java basics
 
Java introduction
Java introductionJava introduction
Java introduction
 
OOP with Java
OOP with JavaOOP with Java
OOP with Java
 
Lecture - 1 introduction to java
Lecture - 1 introduction to javaLecture - 1 introduction to java
Lecture - 1 introduction to java
 
Chapter 1 (1).pptx
Chapter 1 (1).pptxChapter 1 (1).pptx
Chapter 1 (1).pptx
 
www.reallygreatsite.com (4).pdf
www.reallygreatsite.com (4).pdfwww.reallygreatsite.com (4).pdf
www.reallygreatsite.com (4).pdf
 
java basic for begginers
java basic for begginersjava basic for begginers
java basic for begginers
 
Java1
Java1Java1
Java1
 
Java
Java Java
Java
 
Java Tutorial to Learn Java Programming
Java Tutorial to Learn Java ProgrammingJava Tutorial to Learn Java Programming
Java Tutorial to Learn Java Programming
 
JAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptxJAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptx
 
Java Basic.pdf
Java Basic.pdfJava Basic.pdf
Java Basic.pdf
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Classes and Objects
Classes and ObjectsClasses and Objects
Classes and Objects
 
what is java.pdf
what is java.pdfwhat is java.pdf
what is java.pdf
 
Learning java from scratch
Learning java from scratchLearning java from scratch
Learning java from scratch
 

Mais de SeethaDinesh

Mais de SeethaDinesh (20)

Input Devices.pptx
Input Devices.pptxInput Devices.pptx
Input Devices.pptx
 
Generations of Computers.ppt
Generations of Computers.pptGenerations of Computers.ppt
Generations of Computers.ppt
 
Inheritance in java.ppt
Inheritance in java.pptInheritance in java.ppt
Inheritance in java.ppt
 
Arrays in JAVA.ppt
Arrays in JAVA.pptArrays in JAVA.ppt
Arrays in JAVA.ppt
 
Cloud Computing Basics.pptx
Cloud Computing Basics.pptxCloud Computing Basics.pptx
Cloud Computing Basics.pptx
 
unit 5 stack & queue.ppt
unit 5 stack & queue.pptunit 5 stack & queue.ppt
unit 5 stack & queue.ppt
 
Greedy_Backtracking graph coloring.ppt
Greedy_Backtracking graph coloring.pptGreedy_Backtracking graph coloring.ppt
Greedy_Backtracking graph coloring.ppt
 
Structure and Union.ppt
Structure and Union.pptStructure and Union.ppt
Structure and Union.ppt
 
Shortest Path Problem.docx
Shortest Path Problem.docxShortest Path Problem.docx
Shortest Path Problem.docx
 
BINARY TREE REPRESENTATION.ppt
BINARY TREE REPRESENTATION.pptBINARY TREE REPRESENTATION.ppt
BINARY TREE REPRESENTATION.ppt
 
NME UNIT II.ppt
NME UNIT II.pptNME UNIT II.ppt
NME UNIT II.ppt
 
DS UNIT 1.pdf
DS UNIT 1.pdfDS UNIT 1.pdf
DS UNIT 1.pdf
 
Basics of C.ppt
Basics of C.pptBasics of C.ppt
Basics of C.ppt
 
chapter 1.pptx
chapter 1.pptxchapter 1.pptx
chapter 1.pptx
 
DW unit 3.pptx
DW unit 3.pptxDW unit 3.pptx
DW unit 3.pptx
 
DW unit 2.pdf
DW unit 2.pdfDW unit 2.pdf
DW unit 2.pdf
 
DW Unit 1.pdf
DW Unit 1.pdfDW Unit 1.pdf
DW Unit 1.pdf
 
NME WPI UNIt 3.pptx
NME WPI UNIt 3.pptxNME WPI UNIt 3.pptx
NME WPI UNIt 3.pptx
 
NME UNIT I & II MATERIAL.pdf
NME UNIT I & II MATERIAL.pdfNME UNIT I & II MATERIAL.pdf
NME UNIT I & II MATERIAL.pdf
 
graphtraversals.pdf
graphtraversals.pdfgraphtraversals.pdf
graphtraversals.pdf
 

Último

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Último (20)

ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 

PROGRAMMING IN JAVA unit 1.pptx

  • 1. D.SEETHALAKSHMI Assistant Professor Department of Computer Applications Bon Secours College for Women
  • 2.   Java is a high-level general-purpose object-oriented and secure programming language developed by James Gosling at Sun Microsystems Inc. in 1991.  It is formally known as OAK. In 1995 Sun Microsystem changed the name to Java.  In 2009 Sun Microsystem takeover by Oracle Corporation. What is JAVA?
  • 3.   Java Standard Editions (JSE): It is used to create programs for a desktop computer.  Java Enterprise Edition (JEE): It is used to create large programs that run on the server and manages heavy traffic and complex transactions.  Java Micro Edition (JME): It is used to develop applications for small devices such as set-top boxes phone and appliances. Editions of Java
  • 4.   Standalone Applications: Java standalone applications uses GUI components such as AWT Swing and JavaFX. These components contain buttons list menu scroll panel etc. It is also known as desktop alienations.  Enterprise Applications: An application which is distributed in nature is called enterprise applications.  Web Applications: An applications that run on the server is called web applications. We use JSP Servlet Spring and Hibernate technologies for creating web applications.  Mobile Applications: Java ME is a cross-platform to develop mobile applications which run across smartphones. Java is a platform for App Development in Android. Types of Java Applications
  • 5.   Java Platform is a collection of programs. It helps to develop and run a program written in the Java programming language. Java Platform includes an execution engine a compiler and set of libraries. Java is a platform-independent language. Java Platform
  • 6.   There are 3 stages in developing a Java Program:  What’s coding – Developing a java program (set of instructions) according to Java syntax or rules is called coding. Java programs should always be saved with a filename.java extension.  What’s compilation – Converting the java program into byte codes or .class file using javac compiler is called compilation. Whenever we compile a java program a .class file will be generated and it will have byte codes in it.  What’s execution- Converting the byte codes present in the .class file into CPU understandable instructions or binaries using Java Virtual Machine (JVM) which is an interpreter is called execution. Stage of Java
  • 8.   Simple  Robust  Portable  Platform-independent  Secured  High Performance  Multithreaded  Architecture Neutral  Object-Oriented Interpreted  Dynamic Principles of Java
  • 9.   The history of Java starts with the Green Team.  Java team members (also known as Green Team) initiated this project to develop a language for digital devices such as set-top boxes televisions etc.  Java was developed by James Gosling, who is known as the father of Java, in 1995. James Gosling and his team members started the project in the early '90s. History of Java
  • 10.   1) James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991. The small team of sun engineers called Green Team.  2) Initially it was designed for small, embedded systems in electronic appliances like set-top boxes.  3) Firstly, it was called "Greentalk" by James Gosling, and the file extension was .gt.  4) After that, it was called Oak and was developed as a part of the Green project. History of Java
  • 11.   5) Why Oak? Oak is a symbol of strength and chosen as a national tree of many countries like the U.S.A., France, Germany, Romania, etc.  6) In 1995, Oak was renamed as "Java" because it was already a trademark by Oak Technologies. Why Java was named as "Oak"?
  • 12.   Java is an island in Indonesia where the first coffee was produced (called Java coffee). It is a kind of espresso bean. Java name was chosen by James Gosling while having a cup of coffee nearby his office.  In 1995, Time magazine called Java one of the Ten Best Products of 1995. Why Java Programming named "Java"?
  • 13.
  • 16.   Object-oriented programming is a way of solving a complex problem by breaking them into a small sub- problem. An object is a real-world entity. It is easier to develop a program by using an object. In OOPs, we create programs using class and object in a structured manner.  Class: A class is a template or blueprint or prototype that defines data members and methods of an object. An object is the instance of the class. We can define a class by using the class keyword.  Object: An object is a real-world entity that can be identified distinctly. For example, a desk, a circle can be considered as objects. An object has a unique behavior, identity, and state. Data fields with their current values represent the state of an object (also known as its properties or attributes). Object Oriented Programming System
  • 17.   Abstraction: An abstraction is a method of hiding irrelevant information from the user. For example, the driver only knows how to drive a car; there is no need to know how does the car run. We can make a class abstract by using the keyword abstract. In Java, we use abstract class and interface to achieve abstraction.  Encapsulation: An encapsulation is the process of binding data and functions into a single unit. A class is an example of encapsulation. In Java, Java bean is a fully encapsulated class.  Inheritance: Inheritance is the mechanism in which one class acquire all the features of another class. We can achieve inheritance by using the extends keyword. It facilitates the reusability of the code.  Polymorphism: The polymorphism is the ability to appear in many forms. In other words, single action in different ways. For example, a boy in the classroom behaves like a student, in house behaves like a son. There are two types of polymorphism: run time polymorphism and compile-time polymorphism.