SlideShare a Scribd company logo
A
SEMINAR
On
CORE JAVA
Submitted In Partial fulfillment For the award of the Degree of
Bachelor of Technology
In
Computer Science Engineering
SESSION: 2020-21
Submitted to:- Submitted by
Mr. Sanjay Tiwari Arpit khandelwal
Head of Department Roll No.: 17EAOCS008
DEPARTMENT OF COMPUTER SCIENCE ENGINEERING
ARYA INSTITUTE OF ENGINEERING TECHNOLOGY AND MANAGEMENT
OMAXE CITY, BAD KE BALAJI, AJMER ROAD, JAIPUR, RAJASTHAN
CONTENTS
• What is Java ?
• Features of Java
• OOPS Concept of Java
• Program
WHAT IS JAVA?
• Java is a general purpose programming
language which is use to create various
applications.
• Java was first created is 1990 by James
Gosling and his team in Sun Microsystems.
• Java was first known as Oak. Later it was
known as Green project, finally in year 1996 it
got it’s name Java.
FEATURES OF JAVA
• It is simple.
• Object-oriented, and
familiar.
• It is robust.
• Platfrom independent.
• Secure.
• It is portable.
MAIN CONCEPTS
• Object
• Class
• Inheritance
• Encapsulation
• Polymorphism
• Abstraction
OBJECT
• An object has identity
(each object is a
distinct individual).
• An object has state
(it has various properties,
which might change).
• An object has behaviour
(it can do things and can
have things done to it).
CLASS
• A class is a user defined blueprint or prototype from
which objects are created.
• It represent the set of properties or methods that are
common to all objects of one type.
• In general ,class declartions can include these
components ,in order:
 Modifiers
 Class Name
 Super class (If Any)
 Interface(If Any)
 Body
• Modifiers:- A class can be public or has default
access.
• Class name:- The name should be begin with
Initial Letter.
• Super class(If any):-The name of the class's
parent (Superclass ),if any preceded by the
keyword EXTENDS.
• Interface:- A comma-separated list of interface
implemented by the class ,if any,preceded by the
keyword IMPLEMENTS. A class can implement
more than one interface.
• Body:- The class body surrounded by braces{ }
INHERITANCE
• Inheritance is a mechanism in which one object acquires all the
properties and behaviours of a parent object.
• Hence, inheritance facilitates Reusability and is an
important concept of OOPs.
• The idea behind Inheritance in java is that you can create new
classes that are built upon existing classes.
TYPES OF INHERITANCE :
Single Inheritance
Multi -Level Inheritance
Hierarchial Inheritance
ENCAPSULATION
• Encapsulation is a mechanism of
wrapping the data(Variable)and
methods togeather in a single unit.
• To achieve encapsulation in java
declare the variable of a class as
private.
• Encapsulation= Abstraction+ Data
hiding
POLYMORPHISM
• The process of representing one
form in multiple forms is known
as Polymorphism
• Polymorphism principal is divided
into two sub part they are:
 Compile Time Polymorphism
 Run Time Polymorphism
Over loading vs Overriding
ABSTRACTION
• Abstraction is a process of
hiding the implementation
details from the user, only the
functionally will be provided to
the user.
• In other words the user will
have the information on what
the object does instead of how
it does it.
PROGRAM:
HELLO WORLD
class Hello
{
public static void main(String[] args)
{
System.out.println(“Hello.World”);
}
}
C:javac Hello.java
C:java Hello
( compilation creates Hello.class )
(Execution on the local JVM)
Core Java Presentation

More Related Content

What's hot

Core java lessons
Core java lessonsCore java lessons
Core java lessons
vivek shah
 
L1 basics
L1 basicsL1 basics
L1 basics
teach4uin
 
OOP in Java
OOP in JavaOOP in Java
OOP in Java
wiradikusuma
 
OOP Introduction with java programming language
OOP Introduction with java programming languageOOP Introduction with java programming language
OOP Introduction with java programming language
Md.Al-imran Roton
 
Java programming -Object-Oriented Thinking- Inheritance
Java programming -Object-Oriented Thinking- InheritanceJava programming -Object-Oriented Thinking- Inheritance
Java programming -Object-Oriented Thinking- Inheritance
Jyothishmathi Institute of Technology and Science Karimnagar
 
Java Object Oriented Programming
Java Object Oriented Programming Java Object Oriented Programming
Java Object Oriented Programming
University of Potsdam
 
Oops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in JavaOops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in Java
Madishetty Prathibha
 
M4 activity10 code convention
M4 activity10 code conventionM4 activity10 code convention
M4 activity10 code convention
alvaro alcocer sotil
 
Java introduction
Java introductionJava introduction
Java introduction
Muthukumaran Subramanian
 
Presentation on java
Presentation  on  javaPresentation  on  java
Presentation on java
shashi shekhar
 
OBJECT ORIENTED ROGRAMMING With Question And Answer Full
OBJECT ORIENTED ROGRAMMING With Question And Answer  FullOBJECT ORIENTED ROGRAMMING With Question And Answer  Full
OBJECT ORIENTED ROGRAMMING With Question And Answer Full
Manas Rai
 

What's hot (11)

Core java lessons
Core java lessonsCore java lessons
Core java lessons
 
L1 basics
L1 basicsL1 basics
L1 basics
 
OOP in Java
OOP in JavaOOP in Java
OOP in Java
 
OOP Introduction with java programming language
OOP Introduction with java programming languageOOP Introduction with java programming language
OOP Introduction with java programming language
 
Java programming -Object-Oriented Thinking- Inheritance
Java programming -Object-Oriented Thinking- InheritanceJava programming -Object-Oriented Thinking- Inheritance
Java programming -Object-Oriented Thinking- Inheritance
 
Java Object Oriented Programming
Java Object Oriented Programming Java Object Oriented Programming
Java Object Oriented Programming
 
Oops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in JavaOops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in Java
 
M4 activity10 code convention
M4 activity10 code conventionM4 activity10 code convention
M4 activity10 code convention
 
Java introduction
Java introductionJava introduction
Java introduction
 
Presentation on java
Presentation  on  javaPresentation  on  java
Presentation on java
 
OBJECT ORIENTED ROGRAMMING With Question And Answer Full
OBJECT ORIENTED ROGRAMMING With Question And Answer  FullOBJECT ORIENTED ROGRAMMING With Question And Answer  Full
OBJECT ORIENTED ROGRAMMING With Question And Answer Full
 

Similar to Core Java Presentation

U1 JAVA.pptx
U1 JAVA.pptxU1 JAVA.pptx
U1 JAVA.pptx
madan r
 
Introduction to OOP concepts
Introduction to OOP conceptsIntroduction to OOP concepts
Introduction to OOP concepts
Ahmed Farag
 
Introduction to oop and java fundamentals
Introduction to oop and java fundamentalsIntroduction to oop and java fundamentals
Introduction to oop and java fundamentals
AnsgarMary
 
Features of Object Oriented Programming.pptx
Features of Object Oriented Programming.pptxFeatures of Object Oriented Programming.pptx
Features of Object Oriented Programming.pptx
SwagatoBiswas
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java Programming
Ravi Kant Sahu
 
Java_notes.ppt
Java_notes.pptJava_notes.ppt
Java_notes.ppt
tuyambazejeanclaude
 
oop unit1.pptx
oop unit1.pptxoop unit1.pptx
oop unit1.pptx
sureshkumara29
 
CS8392 OOP
CS8392 OOPCS8392 OOP
Mcs 024 assignment solution (2020-21)
Mcs 024 assignment solution (2020-21)Mcs 024 assignment solution (2020-21)
Mcs 024 assignment solution (2020-21)
smumbahelp
 
Intro to java programming
Intro to java programmingIntro to java programming
Intro to java programming
Leah Stephens
 
Intro to java programming
Intro to java programmingIntro to java programming
Intro to java programming
Eugene Stephens
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
Ahmed Abbadi
 
JAVA PROGRAMMING- OOP Concept
JAVA PROGRAMMING- OOP ConceptJAVA PROGRAMMING- OOP Concept
JAVA PROGRAMMING- OOP Concept
Trinity Dwarka
 
Basic Object Oriented Programming in JAVA.pptx
Basic Object Oriented Programming in JAVA.pptxBasic Object Oriented Programming in JAVA.pptx
Basic Object Oriented Programming in JAVA.pptx
Vipul Bambhaniya
 
Programming paradigms
Programming paradigmsProgramming paradigms
Programming paradigms
AVC College of Engineering
 
JAVA PPT Part-1 BY ADI.pdf
JAVA PPT Part-1 BY ADI.pdfJAVA PPT Part-1 BY ADI.pdf
JAVA PPT Part-1 BY ADI.pdf
Prof. Dr. K. Adisesha
 
JAVA PPT-1 BY ADI.pdf
JAVA PPT-1 BY ADI.pdfJAVA PPT-1 BY ADI.pdf
JAVA PPT-1 BY ADI.pdf
Prof. Dr. K. Adisesha
 
1 Introduction to JAVA.pptx
1 Introduction to JAVA.pptx1 Introduction to JAVA.pptx
1 Introduction to JAVA.pptx
Kabiles07
 
PROGRAMMING IN JAVA unit 1.pptx
PROGRAMMING IN JAVA unit 1.pptxPROGRAMMING IN JAVA unit 1.pptx
PROGRAMMING IN JAVA unit 1.pptx
SeethaDinesh
 
Java unit1 a- History of Java to string
Java unit1 a- History of Java to stringJava unit1 a- History of Java to string
Java unit1 a- History of Java to string
SivaSankari36
 

Similar to Core Java Presentation (20)

U1 JAVA.pptx
U1 JAVA.pptxU1 JAVA.pptx
U1 JAVA.pptx
 
Introduction to OOP concepts
Introduction to OOP conceptsIntroduction to OOP concepts
Introduction to OOP concepts
 
Introduction to oop and java fundamentals
Introduction to oop and java fundamentalsIntroduction to oop and java fundamentals
Introduction to oop and java fundamentals
 
Features of Object Oriented Programming.pptx
Features of Object Oriented Programming.pptxFeatures of Object Oriented Programming.pptx
Features of Object Oriented Programming.pptx
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java Programming
 
Java_notes.ppt
Java_notes.pptJava_notes.ppt
Java_notes.ppt
 
oop unit1.pptx
oop unit1.pptxoop unit1.pptx
oop unit1.pptx
 
CS8392 OOP
CS8392 OOPCS8392 OOP
CS8392 OOP
 
Mcs 024 assignment solution (2020-21)
Mcs 024 assignment solution (2020-21)Mcs 024 assignment solution (2020-21)
Mcs 024 assignment solution (2020-21)
 
Intro to java programming
Intro to java programmingIntro to java programming
Intro to java programming
 
Intro to java programming
Intro to java programmingIntro to java programming
Intro to java programming
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
JAVA PROGRAMMING- OOP Concept
JAVA PROGRAMMING- OOP ConceptJAVA PROGRAMMING- OOP Concept
JAVA PROGRAMMING- OOP Concept
 
Basic Object Oriented Programming in JAVA.pptx
Basic Object Oriented Programming in JAVA.pptxBasic Object Oriented Programming in JAVA.pptx
Basic Object Oriented Programming in JAVA.pptx
 
Programming paradigms
Programming paradigmsProgramming paradigms
Programming paradigms
 
JAVA PPT Part-1 BY ADI.pdf
JAVA PPT Part-1 BY ADI.pdfJAVA PPT Part-1 BY ADI.pdf
JAVA PPT Part-1 BY ADI.pdf
 
JAVA PPT-1 BY ADI.pdf
JAVA PPT-1 BY ADI.pdfJAVA PPT-1 BY ADI.pdf
JAVA PPT-1 BY ADI.pdf
 
1 Introduction to JAVA.pptx
1 Introduction to JAVA.pptx1 Introduction to JAVA.pptx
1 Introduction to JAVA.pptx
 
PROGRAMMING IN JAVA unit 1.pptx
PROGRAMMING IN JAVA unit 1.pptxPROGRAMMING IN JAVA unit 1.pptx
PROGRAMMING IN JAVA unit 1.pptx
 
Java unit1 a- History of Java to string
Java unit1 a- History of Java to stringJava unit1 a- History of Java to string
Java unit1 a- History of Java to string
 

Recently uploaded

SCALING OF MOS CIRCUITS m .pptx
SCALING OF MOS CIRCUITS m                 .pptxSCALING OF MOS CIRCUITS m                 .pptx
SCALING OF MOS CIRCUITS m .pptx
harshapolam10
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
uqyfuc
 
Digital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptxDigital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptx
aryanpankaj78
 
This study Examines the Effectiveness of Talent Procurement through the Imple...
This study Examines the Effectiveness of Talent Procurement through the Imple...This study Examines the Effectiveness of Talent Procurement through the Imple...
This study Examines the Effectiveness of Talent Procurement through the Imple...
DharmaBanothu
 
OOPS_Lab_Manual - programs using C++ programming language
OOPS_Lab_Manual - programs using C++ programming languageOOPS_Lab_Manual - programs using C++ programming language
OOPS_Lab_Manual - programs using C++ programming language
PreethaV16
 
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
Paris Salesforce Developer Group
 
Accident detection system project report.pdf
Accident detection system project report.pdfAccident detection system project report.pdf
Accident detection system project report.pdf
Kamal Acharya
 
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
DharmaBanothu
 
Ericsson LTE Throughput Troubleshooting Techniques.ppt
Ericsson LTE Throughput Troubleshooting Techniques.pptEricsson LTE Throughput Troubleshooting Techniques.ppt
Ericsson LTE Throughput Troubleshooting Techniques.ppt
wafawafa52
 
DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...
DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...
DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...
OKORIE1
 
Determination of Equivalent Circuit parameters and performance characteristic...
Determination of Equivalent Circuit parameters and performance characteristic...Determination of Equivalent Circuit parameters and performance characteristic...
Determination of Equivalent Circuit parameters and performance characteristic...
pvpriya2
 
openshift technical overview - Flow of openshift containerisatoin
openshift technical overview - Flow of openshift containerisatoinopenshift technical overview - Flow of openshift containerisatoin
openshift technical overview - Flow of openshift containerisatoin
snaprevwdev
 
FULL STACK PROGRAMMING - Both Front End and Back End
FULL STACK PROGRAMMING - Both Front End and Back EndFULL STACK PROGRAMMING - Both Front End and Back End
FULL STACK PROGRAMMING - Both Front End and Back End
PreethaV16
 
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
upoux
 
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
nedcocy
 
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
upoux
 
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICSUNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
vmspraneeth
 
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
PriyankaKilaniya
 
Presentation on Food Delivery Systems
Presentation on Food Delivery SystemsPresentation on Food Delivery Systems
Presentation on Food Delivery Systems
Abdullah Al Noman
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
PreethaV16
 

Recently uploaded (20)

SCALING OF MOS CIRCUITS m .pptx
SCALING OF MOS CIRCUITS m                 .pptxSCALING OF MOS CIRCUITS m                 .pptx
SCALING OF MOS CIRCUITS m .pptx
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
 
Digital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptxDigital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptx
 
This study Examines the Effectiveness of Talent Procurement through the Imple...
This study Examines the Effectiveness of Talent Procurement through the Imple...This study Examines the Effectiveness of Talent Procurement through the Imple...
This study Examines the Effectiveness of Talent Procurement through the Imple...
 
OOPS_Lab_Manual - programs using C++ programming language
OOPS_Lab_Manual - programs using C++ programming languageOOPS_Lab_Manual - programs using C++ programming language
OOPS_Lab_Manual - programs using C++ programming language
 
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
 
Accident detection system project report.pdf
Accident detection system project report.pdfAccident detection system project report.pdf
Accident detection system project report.pdf
 
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
 
Ericsson LTE Throughput Troubleshooting Techniques.ppt
Ericsson LTE Throughput Troubleshooting Techniques.pptEricsson LTE Throughput Troubleshooting Techniques.ppt
Ericsson LTE Throughput Troubleshooting Techniques.ppt
 
DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...
DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...
DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...
 
Determination of Equivalent Circuit parameters and performance characteristic...
Determination of Equivalent Circuit parameters and performance characteristic...Determination of Equivalent Circuit parameters and performance characteristic...
Determination of Equivalent Circuit parameters and performance characteristic...
 
openshift technical overview - Flow of openshift containerisatoin
openshift technical overview - Flow of openshift containerisatoinopenshift technical overview - Flow of openshift containerisatoin
openshift technical overview - Flow of openshift containerisatoin
 
FULL STACK PROGRAMMING - Both Front End and Back End
FULL STACK PROGRAMMING - Both Front End and Back EndFULL STACK PROGRAMMING - Both Front End and Back End
FULL STACK PROGRAMMING - Both Front End and Back End
 
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
 
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
 
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
 
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICSUNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
 
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
 
Presentation on Food Delivery Systems
Presentation on Food Delivery SystemsPresentation on Food Delivery Systems
Presentation on Food Delivery Systems
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
 

Core Java Presentation

  • 1. A SEMINAR On CORE JAVA Submitted In Partial fulfillment For the award of the Degree of Bachelor of Technology In Computer Science Engineering SESSION: 2020-21 Submitted to:- Submitted by Mr. Sanjay Tiwari Arpit khandelwal Head of Department Roll No.: 17EAOCS008 DEPARTMENT OF COMPUTER SCIENCE ENGINEERING ARYA INSTITUTE OF ENGINEERING TECHNOLOGY AND MANAGEMENT OMAXE CITY, BAD KE BALAJI, AJMER ROAD, JAIPUR, RAJASTHAN
  • 2. CONTENTS • What is Java ? • Features of Java • OOPS Concept of Java • Program
  • 3. WHAT IS JAVA? • Java is a general purpose programming language which is use to create various applications. • Java was first created is 1990 by James Gosling and his team in Sun Microsystems. • Java was first known as Oak. Later it was known as Green project, finally in year 1996 it got it’s name Java.
  • 4. FEATURES OF JAVA • It is simple. • Object-oriented, and familiar. • It is robust. • Platfrom independent. • Secure. • It is portable.
  • 5. MAIN CONCEPTS • Object • Class • Inheritance • Encapsulation • Polymorphism • Abstraction
  • 6. OBJECT • An object has identity (each object is a distinct individual). • An object has state (it has various properties, which might change). • An object has behaviour (it can do things and can have things done to it).
  • 7. CLASS • A class is a user defined blueprint or prototype from which objects are created. • It represent the set of properties or methods that are common to all objects of one type. • In general ,class declartions can include these components ,in order:  Modifiers  Class Name  Super class (If Any)  Interface(If Any)  Body
  • 8. • Modifiers:- A class can be public or has default access. • Class name:- The name should be begin with Initial Letter. • Super class(If any):-The name of the class's parent (Superclass ),if any preceded by the keyword EXTENDS. • Interface:- A comma-separated list of interface implemented by the class ,if any,preceded by the keyword IMPLEMENTS. A class can implement more than one interface. • Body:- The class body surrounded by braces{ }
  • 9. INHERITANCE • Inheritance is a mechanism in which one object acquires all the properties and behaviours of a parent object. • Hence, inheritance facilitates Reusability and is an important concept of OOPs. • The idea behind Inheritance in java is that you can create new classes that are built upon existing classes. TYPES OF INHERITANCE : Single Inheritance Multi -Level Inheritance Hierarchial Inheritance
  • 10. ENCAPSULATION • Encapsulation is a mechanism of wrapping the data(Variable)and methods togeather in a single unit. • To achieve encapsulation in java declare the variable of a class as private. • Encapsulation= Abstraction+ Data hiding
  • 11. POLYMORPHISM • The process of representing one form in multiple forms is known as Polymorphism • Polymorphism principal is divided into two sub part they are:  Compile Time Polymorphism  Run Time Polymorphism
  • 12. Over loading vs Overriding
  • 13. ABSTRACTION • Abstraction is a process of hiding the implementation details from the user, only the functionally will be provided to the user. • In other words the user will have the information on what the object does instead of how it does it.
  • 14. PROGRAM: HELLO WORLD class Hello { public static void main(String[] args) { System.out.println(“Hello.World”); } } C:javac Hello.java C:java Hello ( compilation creates Hello.class ) (Execution on the local JVM)