SlideShare a Scribd company logo
1 of 26
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

Object oriented programming c++
Object oriented programming c++Object oriented programming c++
Object oriented programming c++Ankur Pandey
 
1 unit (oops)
1 unit (oops)1 unit (oops)
1 unit (oops)Jay Patel
 
Presentation on-exception-handling
Presentation on-exception-handlingPresentation on-exception-handling
Presentation on-exception-handlingNahian Ahmed
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to javaSaba Ameer
 
the Concept of Object-Oriented Programming
the Concept of Object-Oriented Programmingthe Concept of Object-Oriented Programming
the Concept of Object-Oriented ProgrammingAida Ramlan II
 
Applet life cycle
Applet life cycleApplet life cycle
Applet life cyclemyrajendra
 
Principles and advantages of oop ppt
Principles and advantages of oop pptPrinciples and advantages of oop ppt
Principles and advantages of oop pptdaxesh chauhan
 
Object Oriented Programming : A Brief History and its significance
Object Oriented Programming : A Brief History and its significanceObject Oriented Programming : A Brief History and its significance
Object Oriented Programming : A Brief History and its significanceGajesh Bhat
 
Exception Handling In Java
Exception Handling In JavaException Handling In Java
Exception Handling In Javaparag
 
Garbage collection
Garbage collectionGarbage collection
Garbage collectionSomya Bagai
 
Object Oriented Design Concept
Object Oriented Design ConceptObject Oriented Design Concept
Object Oriented Design ConceptSharath g
 
Introduction to oops concepts
Introduction to oops conceptsIntroduction to oops concepts
Introduction to oops conceptsNilesh Dalvi
 
Object Oriented Programming Concepts
Object Oriented Programming ConceptsObject Oriented Programming Concepts
Object Oriented Programming Conceptsthinkphp
 

What's hot (20)

Object oriented programming c++
Object oriented programming c++Object oriented programming c++
Object oriented programming c++
 
Oop Presentation
Oop PresentationOop Presentation
Oop Presentation
 
1 unit (oops)
1 unit (oops)1 unit (oops)
1 unit (oops)
 
Exception handling
Exception handlingException handling
Exception handling
 
Presentation on-exception-handling
Presentation on-exception-handlingPresentation on-exception-handling
Presentation on-exception-handling
 
Object-oriented concepts
Object-oriented conceptsObject-oriented concepts
Object-oriented concepts
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
the Concept of Object-Oriented Programming
the Concept of Object-Oriented Programmingthe Concept of Object-Oriented Programming
the Concept of Object-Oriented Programming
 
Applet life cycle
Applet life cycleApplet life cycle
Applet life cycle
 
Principles and advantages of oop ppt
Principles and advantages of oop pptPrinciples and advantages of oop ppt
Principles and advantages of oop ppt
 
Object Oriented Programming : A Brief History and its significance
Object Oriented Programming : A Brief History and its significanceObject Oriented Programming : A Brief History and its significance
Object Oriented Programming : A Brief History and its significance
 
Features of java
Features of javaFeatures of java
Features of java
 
[OOP - Lec 01] Introduction to OOP
[OOP - Lec 01] Introduction to OOP[OOP - Lec 01] Introduction to OOP
[OOP - Lec 01] Introduction to OOP
 
Exception Handling In Java
Exception Handling In JavaException Handling In Java
Exception Handling In Java
 
Garbage collection
Garbage collectionGarbage collection
Garbage collection
 
Object Oriented Design Concept
Object Oriented Design ConceptObject Oriented Design Concept
Object Oriented Design Concept
 
Introduction to oops concepts
Introduction to oops conceptsIntroduction to oops concepts
Introduction to oops concepts
 
Ajax
AjaxAjax
Ajax
 
Object Oriented Design
Object Oriented DesignObject Oriented Design
Object Oriented Design
 
Object Oriented Programming Concepts
Object Oriented Programming ConceptsObject Oriented Programming Concepts
Object Oriented Programming Concepts
 

Viewers also liked

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 2016Don 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 lancamentoshmalta
 
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 2016Simon Perry
 
Pusat zakat umat distribusi wakaf quran
Pusat zakat umat distribusi wakaf quranPusat zakat umat distribusi wakaf quran
Pusat zakat umat distribusi wakaf quranpzupersis
 
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 (13)

Java Notes
Java NotesJava Notes
Java Notes
 
OOP java
OOP javaOOP java
OOP java
 
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 Object Oriented Programming in Java Explained

Unit1 introduction to Java
Unit1 introduction to JavaUnit1 introduction to Java
Unit1 introduction to JavaDevaKumari Vijay
 
Lecture - 1 introduction to java
Lecture - 1 introduction to javaLecture - 1 introduction to java
Lecture - 1 introduction to javamanish kumar
 
JAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptxJAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptxDrPreethiD1
 
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.pdfUmesh 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 3rdprat0ham
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to JavaAnkita Totala
 
OOP with Java
OOP with JavaOOP with Java
OOP with JavaOmegaHub
 
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, MysuruNithin Kumar,VVCE, Mysuru
 
Basics of JAVA programming
Basics of JAVA programmingBasics of JAVA programming
Basics of JAVA programmingElizabeth 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.pptxSeethaDinesh
 
Presentation on java
Presentation on javaPresentation on java
Presentation on javawilliam john
 
0f0cef_1dac552af56c4338ab0672859199e693.pdf
0f0cef_1dac552af56c4338ab0672859199e693.pdf0f0cef_1dac552af56c4338ab0672859199e693.pdf
0f0cef_1dac552af56c4338ab0672859199e693.pdfDeepakChaudhriAmbali
 

Similar to Object Oriented Programming in Java Explained (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

Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 

Recently uploaded (20)

Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 

Object Oriented Programming in Java Explained

  • 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