SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Mais procurados

Control structures in java
Control structures in javaControl structures in java
Control structures in javaVINOTH R
 
Introduction to Java -unit-1
Introduction to Java -unit-1Introduction to Java -unit-1
Introduction to Java -unit-1RubaNagarajan
 
Exception Handling
Exception HandlingException Handling
Exception HandlingReddhi Basu
 
Cyber security talks 2019 by theko moima
Cyber security talks 2019 by theko moimaCyber security talks 2019 by theko moima
Cyber security talks 2019 by theko moimaTheko Moima
 
Structure of java program diff c- cpp and java
Structure of java program  diff c- cpp and javaStructure of java program  diff c- cpp and java
Structure of java program diff c- cpp and javaMadishetty Prathibha
 
Operating System Security
Operating System SecurityOperating System Security
Operating System SecurityRamesh Upadhaya
 
Application Security - Your Success Depends on it
Application Security - Your Success Depends on itApplication Security - Your Success Depends on it
Application Security - Your Success Depends on itWSO2
 
Understanding java streams
Understanding java streamsUnderstanding java streams
Understanding java streamsShahjahan Samoon
 
Java And Multithreading
Java And MultithreadingJava And Multithreading
Java And MultithreadingShraddha
 
MULTI THREADING IN JAVA
MULTI THREADING IN JAVAMULTI THREADING IN JAVA
MULTI THREADING IN JAVAVINOTH R
 
9. Input Output in java
9. Input Output in java9. Input Output in java
9. Input Output in javaNilesh Dalvi
 
Network Security Research Paper
Network Security Research PaperNetwork Security Research Paper
Network Security Research PaperPankaj Jha
 
Exception Handling in JAVA
Exception Handling in JAVAException Handling in JAVA
Exception Handling in JAVASURIT DATTA
 
What is Cyber Security? | Introduction to Cyber Security | Cyber Security Tra...
What is Cyber Security? | Introduction to Cyber Security | Cyber Security Tra...What is Cyber Security? | Introduction to Cyber Security | Cyber Security Tra...
What is Cyber Security? | Introduction to Cyber Security | Cyber Security Tra...Edureka!
 

Mais procurados (20)

Control structures in java
Control structures in javaControl structures in java
Control structures in java
 
Introduction to Java -unit-1
Introduction to Java -unit-1Introduction to Java -unit-1
Introduction to Java -unit-1
 
Exception Handling
Exception HandlingException Handling
Exception Handling
 
Cyber security talks 2019 by theko moima
Cyber security talks 2019 by theko moimaCyber security talks 2019 by theko moima
Cyber security talks 2019 by theko moima
 
Java threads
Java threadsJava threads
Java threads
 
Structure of java program diff c- cpp and java
Structure of java program  diff c- cpp and javaStructure of java program  diff c- cpp and java
Structure of java program diff c- cpp and java
 
Java features
Java featuresJava features
Java features
 
Operating System Security
Operating System SecurityOperating System Security
Operating System Security
 
Application Security - Your Success Depends on it
Application Security - Your Success Depends on itApplication Security - Your Success Depends on it
Application Security - Your Success Depends on it
 
Java Programming
Java ProgrammingJava Programming
Java Programming
 
Understanding java streams
Understanding java streamsUnderstanding java streams
Understanding java streams
 
Java And Multithreading
Java And MultithreadingJava And Multithreading
Java And Multithreading
 
MULTI THREADING IN JAVA
MULTI THREADING IN JAVAMULTI THREADING IN JAVA
MULTI THREADING IN JAVA
 
9. Input Output in java
9. Input Output in java9. Input Output in java
9. Input Output in java
 
Network Security Research Paper
Network Security Research PaperNetwork Security Research Paper
Network Security Research Paper
 
Java threading
Java threadingJava threading
Java threading
 
Java I/o streams
Java I/o streamsJava I/o streams
Java I/o streams
 
Exception Handling in JAVA
Exception Handling in JAVAException Handling in JAVA
Exception Handling in JAVA
 
What is Cyber Security? | Introduction to Cyber Security | Cyber Security Tra...
What is Cyber Security? | Introduction to Cyber Security | Cyber Security Tra...What is Cyber Security? | Introduction to Cyber Security | Cyber Security Tra...
What is Cyber Security? | Introduction to Cyber Security | Cyber Security Tra...
 
Inner classes in java
Inner classes in javaInner classes in java
Inner classes in java
 

Destaque

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
 

Destaque (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
 

Semelhante a 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
 

Semelhante a 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
 

Último

HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
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
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxPoojaSen20
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
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
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinojohnmickonozaleda
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 

Último (20)

HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
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
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
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
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
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🔝
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.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