SlideShare a Scribd company logo
Object Oriented Programming
with Java
 What is computer.
 Developer basic skills.
 Memory management in computer.
 Introduction to java.
 What is OOP.
 Why OOP.
Course Content
 an electronic device that stores and processes data.
 A computer includes both hardware and software.
 In general, hardware is the physical aspect of the
computer that can be seen, and software is the invisible
instructions that control the hardware and make it
perform specific tasks.
Meaning of computer
 Good knowledge with two things
what will developer interact with ..?
How I will deal with it…?
Developer basic skills
 Computers use zeros and ones because digital devices
have two stable states, referred to as zero and one by
convention.
 Data of various kinds, such as numbers, characters, and
strings, are encoded as a series of bits (binary digits:
zeros and ones).
 A memory unit is an ordered sequence of bytes, each
holding eight bits.
Memory management in
computer
 Brief history of java.
 Java principles.
 Java features.
 Memory Management in java.
Introduction to java
 Java was created by sun microsystems in may 1995.
 Idea was to create a language to control any
hardware.
 Team who achieved java was green team.
 Leader of team was James Gosling.
Brief history of java
 Java is used in
Desktop applications.
Wed applications.
Mobile applications.
Embedded applications.
Brief history of java
 Simple object oriented and easy to learn.
 Secure.
 Architecture neutral and portable.
 Compiled and interpreted.
 Execute with high performance.
 Treaded and dynamic.
Java Principles
 Java is easy to learn
Syntax of C++.
Dynamic memory management
(garbage collection).
No pointers.
Java features
 Machine and platform independent.
Java features cont’d
Java is compiled and interpreted
Source Code Intermediate
Code RunCompiling
one time only
Interpreted
JVM
File.java file. Class
 Java depends on dynamic linking of libraries.
Java features cont’d
JVM
Libraries
Compiler
 Java is fully Object Oriented
Map up of classes.
No multiple inheritance.
Java features cont’d
 Java is multithreaded language
you can create programs that run multiple
threads of execution in parallel.
Java features cont’d
 Memory management before java (manual management)
Memory Management in java
Pointers
 Ex: Person p = new Person();
Memory Management in java
Variables
Primitives
Objects
(p)
Stack Heap
Garbage collection
checks device
memory every time
unit (as JVM
decided) and remove
not usable objects
and it’s contents.new Person();
C
Inheritance
abstraction
Encapsulation
Polymorphism
Object Oriented Programming
(OOP)
 Superclass and subclass.
 Overloading.
 Overriding.
 Polymorphism.
 Encapsulation
Inheritance …
 The whole idea behind encapsulation is to hide
the implementation details from users. If a data
member is private it means it can only be
accessed within the same class.
 Encapsulation also known as data hiding.
Encapsulation
 Ex:
public class A{
private int age;
private String name;
public void setAge(int newAge){Age = newAge;}
public int getAge(){
Return age;}}
Public class MainClass{
Public static void main(String[]args){
A a = new A();
a.setAge(10);
a.getAge();}
}
Encapsulation cont’d
• What is an exception?
Definition of exception
reasons of exceptions
when exceptions occur
• Difference among exception and error
• Why should handling exception
Exceptions
 An Exception can be anything which interrupts the
normal flow of the program. When an exception
occurs program processing gets terminated and
doesn’t continue further.
 In such cases we get a system generated error
message. The good thing about exceptions is that
they can be handled. We will cover the handling part
later in this same tutorial.
Exception definition
 There can be several reasons for an exception. For
example, following situations can cause an exception
- Opening a non-existing file, Network connection
problem, Operands being manipulated are out of
prescribed ranges, class file missing which was
supposed to be loaded and so on.
Reasons of exception
 Exception can occur at runtime (known as runtime
exceptions) as well as at compile-time (known
Compile-time exceptions).
When exception occurs …?
 Errors indicate serious problems and abnormal conditions
that most applications should not try to handle. Error
defines problems that are not expected to be caught
under normal circumstances by our program. For example
memory error, hardware error, JVM error etc.
Exceptions are conditions within the code. A developer
can handle such conditions and take necessary corrective
actions. Few examples -
 DivideByZero exception
 NullPointerException
 ArithmeticException
 ArrayIndexOutOfBoundsException
Difference among exception
and error

More Related Content

What's hot

Java-java virtual machine
Java-java virtual machineJava-java virtual machine
Java-java virtual machine
Surbhi Panhalkar
 
JDK,JRE,JVM
JDK,JRE,JVMJDK,JRE,JVM
JDK,JRE,JVM
Cognizant
 
Java Presentation For Syntax
Java Presentation For SyntaxJava Presentation For Syntax
Java Presentation For Syntax
PravinYalameli
 
Arrays in Java
Arrays in Java Arrays in Java
Arrays in Java
Hitesh-Java
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
Java Lover
 
Constructors in java
Constructors in javaConstructors in java
Constructors in java
chauhankapil
 
Chapter 05 classes and objects
Chapter 05 classes and objectsChapter 05 classes and objects
Chapter 05 classes and objects
Praveen M Jigajinni
 
Core java complete ppt(note)
Core java  complete  ppt(note)Core java  complete  ppt(note)
Core java complete ppt(note)
arvind pandey
 
Constructors in java
Constructors in javaConstructors in java
Constructors in java
sunilchute1
 
Core Java
Core JavaCore Java
Core Java
Priyanka Pradhan
 
Arrays in java
Arrays in javaArrays in java
Arrays in java
Arzath Areeff
 
JAVA APPLET BASICS
JAVA APPLET BASICSJAVA APPLET BASICS
JAVA APPLET BASICS
Shanid Malayil
 
Java And Multithreading
Java And MultithreadingJava And Multithreading
Java And Multithreading
Shraddha
 
The Evolution of Java
The Evolution of JavaThe Evolution of Java
The Evolution of Java
Fu Cheng
 
Core java course syllabus
Core java course syllabusCore java course syllabus
Core java course syllabus
Papitha Velumani
 
Object Oriented Programming Concepts
Object Oriented Programming ConceptsObject Oriented Programming Concepts
Object Oriented Programming Conceptsthinkphp
 
Java basic
Java basicJava basic
Java basic
Arati Gadgil
 
OCA Java SE 8 Exam Chapter 1 Java Building Blocks
OCA Java SE 8 Exam Chapter 1 Java Building BlocksOCA Java SE 8 Exam Chapter 1 Java Building Blocks
OCA Java SE 8 Exam Chapter 1 Java Building Blocks
İbrahim Kürce
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
Professional Guru
 

What's hot (20)

Java-java virtual machine
Java-java virtual machineJava-java virtual machine
Java-java virtual machine
 
JDK,JRE,JVM
JDK,JRE,JVMJDK,JRE,JVM
JDK,JRE,JVM
 
Java Presentation For Syntax
Java Presentation For SyntaxJava Presentation For Syntax
Java Presentation For Syntax
 
Arrays in Java
Arrays in Java Arrays in Java
Arrays in Java
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
 
Constructors in java
Constructors in javaConstructors in java
Constructors in java
 
Chapter 05 classes and objects
Chapter 05 classes and objectsChapter 05 classes and objects
Chapter 05 classes and objects
 
Core java complete ppt(note)
Core java  complete  ppt(note)Core java  complete  ppt(note)
Core java complete ppt(note)
 
Constructors in java
Constructors in javaConstructors in java
Constructors in java
 
Core Java
Core JavaCore Java
Core Java
 
Arrays in java
Arrays in javaArrays in java
Arrays in java
 
JAVA APPLET BASICS
JAVA APPLET BASICSJAVA APPLET BASICS
JAVA APPLET BASICS
 
Java And Multithreading
Java And MultithreadingJava And Multithreading
Java And Multithreading
 
The Evolution of Java
The Evolution of JavaThe Evolution of Java
The Evolution of Java
 
Core java course syllabus
Core java course syllabusCore java course syllabus
Core java course syllabus
 
Object Oriented Programming Concepts
Object Oriented Programming ConceptsObject Oriented Programming Concepts
Object Oriented Programming Concepts
 
Java basic
Java basicJava basic
Java basic
 
OCA Java SE 8 Exam Chapter 1 Java Building Blocks
OCA Java SE 8 Exam Chapter 1 Java Building BlocksOCA Java SE 8 Exam Chapter 1 Java Building Blocks
OCA Java SE 8 Exam Chapter 1 Java Building Blocks
 
Java input
Java inputJava input
Java input
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 

Viewers also liked

Java Notes
Java NotesJava Notes
Java Notes
Abhishek Khune
 
Object Oriented Programming with Java
Object Oriented Programming with JavaObject Oriented Programming with Java
Object Oriented Programming with Javabackdoor
 
Getting your portfolio noticed 2016
Getting your portfolio noticed 2016Getting your portfolio noticed 2016
Getting your portfolio noticed 2016
Don Humphreys
 
O'Neil Technical Resume
O'Neil Technical ResumeO'Neil Technical Resume
O'Neil Technical Resumemonica o'neil
 
Catalogo incefra lancamentos
Catalogo incefra lancamentosCatalogo incefra lancamentos
Catalogo incefra lancamentos
hmalta
 
Mary Edwards - The Big Thaw - Isle of Wight Cafe Sci, Oct 2016
Mary Edwards - The Big Thaw - Isle of Wight Cafe Sci, Oct 2016Mary Edwards - The Big Thaw - Isle of Wight Cafe Sci, Oct 2016
Mary Edwards - The Big Thaw - Isle of Wight Cafe Sci, Oct 2016
Simon Perry
 
Pusat zakat umat distribusi wakaf quran
Pusat zakat umat distribusi wakaf quranPusat zakat umat distribusi wakaf quran
Pusat zakat umat distribusi wakaf quran
pzupersis
 
Q6. What have you learnt about technologies from the process of constructing ...
Q6. What have you learnt about technologies from the process of constructing ...Q6. What have you learnt about technologies from the process of constructing ...
Q6. What have you learnt about technologies from the process of constructing ...
RebeccaOrchiton
 
Lab report
Lab reportLab report
Lab reportKuan Wei
 

Viewers also liked (12)

Java Notes
Java NotesJava Notes
Java Notes
 
Object Oriented Programming with Java
Object Oriented Programming with JavaObject Oriented Programming with Java
Object Oriented Programming with Java
 
Getting your portfolio noticed 2016
Getting your portfolio noticed 2016Getting your portfolio noticed 2016
Getting your portfolio noticed 2016
 
O'Neil Technical Resume
O'Neil Technical ResumeO'Neil Technical Resume
O'Neil Technical Resume
 
Catalogo incefra lancamentos
Catalogo incefra lancamentosCatalogo incefra lancamentos
Catalogo incefra lancamentos
 
Mary Edwards - The Big Thaw - Isle of Wight Cafe Sci, Oct 2016
Mary Edwards - The Big Thaw - Isle of Wight Cafe Sci, Oct 2016Mary Edwards - The Big Thaw - Isle of Wight Cafe Sci, Oct 2016
Mary Edwards - The Big Thaw - Isle of Wight Cafe Sci, Oct 2016
 
Pusat zakat umat distribusi wakaf quran
Pusat zakat umat distribusi wakaf quranPusat zakat umat distribusi wakaf quran
Pusat zakat umat distribusi wakaf quran
 
CV_VK-1
CV_VK-1CV_VK-1
CV_VK-1
 
Q6. What have you learnt about technologies from the process of constructing ...
Q6. What have you learnt about technologies from the process of constructing ...Q6. What have you learnt about technologies from the process of constructing ...
Q6. What have you learnt about technologies from the process of constructing ...
 
pennymac3
pennymac3pennymac3
pennymac3
 
Internship Paper
Internship PaperInternship Paper
Internship Paper
 
Lab report
Lab reportLab report
Lab report
 

Similar to Short notes of oop with java

Java1
Java1Java1
Java
Java Java
Unit1 introduction to Java
Unit1 introduction to JavaUnit1 introduction to Java
Unit1 introduction to Java
DevaKumari Vijay
 
Java
JavaJava
Java
seenak
 
Lecture - 1 introduction to java
Lecture - 1 introduction to javaLecture - 1 introduction to java
Lecture - 1 introduction to java
manish kumar
 
JAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptxJAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptx
DrPreethiD1
 
Top 10 Important Core Java Interview questions and answers.pdf
Top 10 Important Core Java Interview questions and answers.pdfTop 10 Important Core Java Interview questions and answers.pdf
Top 10 Important Core Java Interview questions and answers.pdf
Umesh Kumar
 
Unit 1 Core Java for Compter Science 3rd
Unit 1 Core Java for Compter Science 3rdUnit 1 Core Java for Compter Science 3rd
Unit 1 Core Java for Compter Science 3rd
prat0ham
 
Java chapter 1
Java   chapter 1Java   chapter 1
Java chapter 1
Mukesh Tekwani
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
Ankita Totala
 
OOP with Java
OOP with JavaOOP with Java
OOP with Java
OmegaHub
 
1.introduction to java
1.introduction to java1.introduction to java
1.introduction to java
Madhura Bhalerao
 
Java programming material for beginners by Nithin, VVCE, Mysuru
Java programming material for beginners by Nithin, VVCE, MysuruJava programming material for beginners by Nithin, VVCE, Mysuru
Java programming material for beginners by Nithin, VVCE, Mysuru
Nithin Kumar,VVCE, Mysuru
 
Basics of JAVA programming
Basics of JAVA programmingBasics of JAVA programming
Basics of JAVA programming
Elizabeth Thomas
 
What are the popular features of java?
What are the popular features of java?What are the popular features of java?
What are the popular features of java?
kanchanmahajan23
 
PROGRAMMING IN JAVA unit 1.pptx
PROGRAMMING IN JAVA unit 1.pptxPROGRAMMING IN JAVA unit 1.pptx
PROGRAMMING IN JAVA unit 1.pptx
SeethaDinesh
 
Presentation on java
Presentation on javaPresentation on java
Presentation on java
william john
 
0f0cef_1dac552af56c4338ab0672859199e693.pdf
0f0cef_1dac552af56c4338ab0672859199e693.pdf0f0cef_1dac552af56c4338ab0672859199e693.pdf
0f0cef_1dac552af56c4338ab0672859199e693.pdf
DeepakChaudhriAmbali
 

Similar to Short notes of oop with java (20)

Java1
Java1Java1
Java1
 
Java
Java Java
Java
 
Unit1 introduction to Java
Unit1 introduction to JavaUnit1 introduction to Java
Unit1 introduction to Java
 
1 .java basic
1 .java basic1 .java basic
1 .java basic
 
Java
JavaJava
Java
 
Lecture - 1 introduction to java
Lecture - 1 introduction to javaLecture - 1 introduction to java
Lecture - 1 introduction to java
 
JAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptxJAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptx
 
Top 10 Important Core Java Interview questions and answers.pdf
Top 10 Important Core Java Interview questions and answers.pdfTop 10 Important Core Java Interview questions and answers.pdf
Top 10 Important Core Java Interview questions and answers.pdf
 
Unit 1 Core Java for Compter Science 3rd
Unit 1 Core Java for Compter Science 3rdUnit 1 Core Java for Compter Science 3rd
Unit 1 Core Java for Compter Science 3rd
 
Java chapter 1
Java   chapter 1Java   chapter 1
Java chapter 1
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
OOP with Java
OOP with JavaOOP with Java
OOP with Java
 
1.introduction to java
1.introduction to java1.introduction to java
1.introduction to java
 
Java programming material for beginners by Nithin, VVCE, Mysuru
Java programming material for beginners by Nithin, VVCE, MysuruJava programming material for beginners by Nithin, VVCE, Mysuru
Java programming material for beginners by Nithin, VVCE, Mysuru
 
Basics of JAVA programming
Basics of JAVA programmingBasics of JAVA programming
Basics of JAVA programming
 
What are the popular features of java?
What are the popular features of java?What are the popular features of java?
What are the popular features of java?
 
PROGRAMMING IN JAVA unit 1.pptx
PROGRAMMING IN JAVA unit 1.pptxPROGRAMMING IN JAVA unit 1.pptx
PROGRAMMING IN JAVA unit 1.pptx
 
Presentation on java
Presentation on javaPresentation on java
Presentation on java
 
Java Intro
Java IntroJava Intro
Java Intro
 
0f0cef_1dac552af56c4338ab0672859199e693.pdf
0f0cef_1dac552af56c4338ab0672859199e693.pdf0f0cef_1dac552af56c4338ab0672859199e693.pdf
0f0cef_1dac552af56c4338ab0672859199e693.pdf
 

Recently uploaded

CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 

Recently uploaded (20)

CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 

Short notes of oop with java

  • 2.  What is computer.  Developer basic skills.  Memory management in computer.  Introduction to java.  What is OOP.  Why OOP. Course Content
  • 3.  an electronic device that stores and processes data.  A computer includes both hardware and software.  In general, hardware is the physical aspect of the computer that can be seen, and software is the invisible instructions that control the hardware and make it perform specific tasks. Meaning of computer
  • 4.  Good knowledge with two things what will developer interact with ..? How I will deal with it…? Developer basic skills
  • 5.  Computers use zeros and ones because digital devices have two stable states, referred to as zero and one by convention.  Data of various kinds, such as numbers, characters, and strings, are encoded as a series of bits (binary digits: zeros and ones).  A memory unit is an ordered sequence of bytes, each holding eight bits. Memory management in computer
  • 6.  Brief history of java.  Java principles.  Java features.  Memory Management in java. Introduction to java
  • 7.  Java was created by sun microsystems in may 1995.  Idea was to create a language to control any hardware.  Team who achieved java was green team.  Leader of team was James Gosling. Brief history of java
  • 8.  Java is used in Desktop applications. Wed applications. Mobile applications. Embedded applications. Brief history of java
  • 9.  Simple object oriented and easy to learn.  Secure.  Architecture neutral and portable.  Compiled and interpreted.  Execute with high performance.  Treaded and dynamic. Java Principles
  • 10.  Java is easy to learn Syntax of C++. Dynamic memory management (garbage collection). No pointers. Java features
  • 11.  Machine and platform independent. Java features cont’d
  • 12. Java is compiled and interpreted Source Code Intermediate Code RunCompiling one time only Interpreted JVM File.java file. Class
  • 13.  Java depends on dynamic linking of libraries. Java features cont’d JVM Libraries Compiler
  • 14.  Java is fully Object Oriented Map up of classes. No multiple inheritance. Java features cont’d
  • 15.  Java is multithreaded language you can create programs that run multiple threads of execution in parallel. Java features cont’d
  • 16.  Memory management before java (manual management) Memory Management in java Pointers
  • 17.  Ex: Person p = new Person(); Memory Management in java Variables Primitives Objects (p) Stack Heap Garbage collection checks device memory every time unit (as JVM decided) and remove not usable objects and it’s contents.new Person(); C
  • 19.  Superclass and subclass.  Overloading.  Overriding.  Polymorphism.  Encapsulation Inheritance …
  • 20.  The whole idea behind encapsulation is to hide the implementation details from users. If a data member is private it means it can only be accessed within the same class.  Encapsulation also known as data hiding. Encapsulation
  • 21.  Ex: public class A{ private int age; private String name; public void setAge(int newAge){Age = newAge;} public int getAge(){ Return age;}} Public class MainClass{ Public static void main(String[]args){ A a = new A(); a.setAge(10); a.getAge();} } Encapsulation cont’d
  • 22. • What is an exception? Definition of exception reasons of exceptions when exceptions occur • Difference among exception and error • Why should handling exception Exceptions
  • 23.  An Exception can be anything which interrupts the normal flow of the program. When an exception occurs program processing gets terminated and doesn’t continue further.  In such cases we get a system generated error message. The good thing about exceptions is that they can be handled. We will cover the handling part later in this same tutorial. Exception definition
  • 24.  There can be several reasons for an exception. For example, following situations can cause an exception - Opening a non-existing file, Network connection problem, Operands being manipulated are out of prescribed ranges, class file missing which was supposed to be loaded and so on. Reasons of exception
  • 25.  Exception can occur at runtime (known as runtime exceptions) as well as at compile-time (known Compile-time exceptions). When exception occurs …?
  • 26.  Errors indicate serious problems and abnormal conditions that most applications should not try to handle. Error defines problems that are not expected to be caught under normal circumstances by our program. For example memory error, hardware error, JVM error etc. Exceptions are conditions within the code. A developer can handle such conditions and take necessary corrective actions. Few examples -  DivideByZero exception  NullPointerException  ArithmeticException  ArrayIndexOutOfBoundsException Difference among exception and error