SlideShare a Scribd company logo
Top 10 Java Oops Interview Questions
http://crbtech.in/Student-Review
Top 10 Java Oops Interview Questions
http://crbtech.in/Student-Review
1.What exactly is the Java’s oops concept?
Oops is a methodology that gives a way for modularizing a program by developing a partitioned memory location
for both data and its methods that can be utilized as format for creating duplicates of such modules on interest.
The four types include:
Inheritance
Polymorphism
Encapsulation
Abstraction
Top 10 Java Oops Interview Questions
http://crbtech.in/Student-Review
2. What do you mean by encapsulation?
The process of associating data with related methods is called encapsulation. Class forms the core of this.
3. Define a class:
In case of oops, a class is a collection of variable/s and method/s for a particular type of object. An object is considered to be an instance of
a class. It happens to be a user defined data type in Java.
4. What do you mean by an object?
It forms an instance of a class. Object can be defined as any entity that has attributes, methods associated with it. An object is used to
allocate dynamic memory to a class.
5. State the object characteristics
The three characteristics of an object are:
Identity
Behavior
State
6. Explain inheritance
Self explanatory, it means to intake what already exists.
One of the most important concepts. The purpose is purely re-usability.
Used for inheriting properties from one class object to another one.
In simple terms, just like you inherit qualities from your parents!
Top 10 Java Oops Interview Questions
http://crbtech.in/Student-Review
7. How is inheritance put to use in Java?
Inheritance is used in Java with the help of two keywords namely ‘extends’ and
‘implements’.
With the help of ‘extends’, inheritance between two interfaces or classes can be
established. While,
‘implements’ is used to establish inheritance amongst interface and class.
e.g.
package com.instanceofjava;
class A{ }
package com.instanceofjava;
class B extends A{ }
Top 10 Java Oops Interview Questions
http://crbtech.in/Student-Review
8. State the different types of inheritances
Inheritance is divided into two main types namely-
Multiple inheritance
Multilevel inheritance
Multiple inheritance:
The funda of getting objects from multiple classes into single class object is called multiple inheritance. It is
not supported in Java programming.
Multilevel inheritance:
Getting properties from object of one class to another class object, is called multilevel inheritance.
e.g. package com.instanceofjava;
class A{ }
class B extends A{}
class C extends B{}
Top 10 Java Oops Interview Questions
http://crbtech.in/Student-Review
9. Define polymorphism
Using same names for more than one method.
One of the most popular java interview questions.
Two types are:
Static polymorphism and Dynamic polymorphism
Static:
Also called as method overloading
Multiple methods with same name and different parameters.
Dynamic:
Defining more than one methods with identical signature in sub class and super class.
The always executed method in this case will be sub most object.
Top 10 Java Oops Interview Questions
http://crbtech.in/Student-Review
10. Elaborate this and super keywords
Super:
A keyword used to store super class non -static members reference in sub class object.
Used to differentiate between sub class and super class members if the names are same.
System.out.println(super); would give compilation Error.
This:
Current object reference is stored in this.
Should be used when non-static variable and local variables’ name happens to be one.
System.out.print(this); would work fine.
So, these were some of the popular oops concepts and the very basic ones that form Java core interview questions.
There are many institutes present for Java training Pune. You can benefit by joining them.
Top 10 Java Oops Interview Questions
http://crbtech.in/Student-Review
CRB TECH PRESENTATION
http://crbtech.in/Student-Review
CRB TECH PRESENTATION
http://crbtech.in/Student-Review
CRB TECH PRESENTATION
http://crbtech.in/Student-Review

More Related Content

What's hot

Lecture 8
Lecture 8Lecture 8
Inheritance In Java
Inheritance In JavaInheritance In Java
Inheritance In Java
Darpan Chelani
 
Final presentation programming
Final presentation programmingFinal presentation programming
Final presentation programming
haider ali
 
Chapter25 inheritance-i
Chapter25 inheritance-iChapter25 inheritance-i
Chapter25 inheritance-iDeepak Singh
 
Simple java program
Simple java programSimple java program
Simple java program
shalinikarunakaran1
 
Lo10
Lo10Lo10
Lo10
liankei
 
150950107056 2150704
150950107056 2150704150950107056 2150704
150950107056 2150704
Prashant Mokani
 
Learn Java language fundamentals with Unit nexus
Learn Java language fundamentals with Unit nexusLearn Java language fundamentals with Unit nexus
Learn Java language fundamentals with Unit nexus
Unit Nexus Pvt. Ltd.
 
Principles of Object Oriented Programming
Principles of Object Oriented ProgrammingPrinciples of Object Oriented Programming
Principles of Object Oriented Programming
Kasun Ranga Wijeweera
 
Inheritance in OOPS
Inheritance in OOPSInheritance in OOPS
Inheritance in OOPS
Ronak Chhajed
 
Inheritance in Object Oriented Programming
Inheritance in Object Oriented ProgrammingInheritance in Object Oriented Programming
Inheritance in Object Oriented Programming
Ashita Agrawal
 
Inheritance in c++
Inheritance in c++Inheritance in c++
Inheritance in c++
Vineeta Garg
 
Chapter 8.2
Chapter 8.2Chapter 8.2
Chapter 8.2sotlsoc
 
OOP Inheritance
OOP InheritanceOOP Inheritance
OOP Inheritance
Anastasia Jakubow
 
Oop inheritance
Oop inheritanceOop inheritance
Oop inheritance
Zubair CH
 

What's hot (16)

Lecture 8
Lecture 8Lecture 8
Lecture 8
 
Inheritance In Java
Inheritance In JavaInheritance In Java
Inheritance In Java
 
Final presentation programming
Final presentation programmingFinal presentation programming
Final presentation programming
 
Chapter25 inheritance-i
Chapter25 inheritance-iChapter25 inheritance-i
Chapter25 inheritance-i
 
Simple java program
Simple java programSimple java program
Simple java program
 
Lo10
Lo10Lo10
Lo10
 
150950107056 2150704
150950107056 2150704150950107056 2150704
150950107056 2150704
 
Learn Java language fundamentals with Unit nexus
Learn Java language fundamentals with Unit nexusLearn Java language fundamentals with Unit nexus
Learn Java language fundamentals with Unit nexus
 
Principles of Object Oriented Programming
Principles of Object Oriented ProgrammingPrinciples of Object Oriented Programming
Principles of Object Oriented Programming
 
Inheritance in OOPS
Inheritance in OOPSInheritance in OOPS
Inheritance in OOPS
 
Inheritance in Object Oriented Programming
Inheritance in Object Oriented ProgrammingInheritance in Object Oriented Programming
Inheritance in Object Oriented Programming
 
Inheritance in c++
Inheritance in c++Inheritance in c++
Inheritance in c++
 
Chapter 8.2
Chapter 8.2Chapter 8.2
Chapter 8.2
 
OOP_1_TEG
OOP_1_TEGOOP_1_TEG
OOP_1_TEG
 
OOP Inheritance
OOP InheritanceOOP Inheritance
OOP Inheritance
 
Oop inheritance
Oop inheritanceOop inheritance
Oop inheritance
 

Viewers also liked

Basics of oops concept
Basics of oops conceptBasics of oops concept
Basics of oops concept
DINESH KUMAR ARIVARASAN
 
Programming Fundamentals With OOPs Concepts (Java Examples Based)
Programming Fundamentals With OOPs Concepts (Java Examples Based)Programming Fundamentals With OOPs Concepts (Java Examples Based)
Programming Fundamentals With OOPs Concepts (Java Examples Based)
indiangarg
 
OOPs in Java
OOPs in JavaOOPs in Java
OOPs in Java
Ranjith Sekar
 
Java Basic Oops Concept
Java Basic Oops ConceptJava Basic Oops Concept
Java Basic Oops Concept
atozknowledge .com
 
Object Oriented Programming with Java
Object Oriented Programming with JavaObject Oriented Programming with Java
Object Oriented Programming with Javabackdoor
 
oops concept in java | object oriented programming in java
oops concept in java | object oriented programming in javaoops concept in java | object oriented programming in java
oops concept in java | object oriented programming in java
CPD INDIA
 
Basic concepts of object oriented programming
Basic concepts of object oriented programmingBasic concepts of object oriented programming
Basic concepts of object oriented programming
Sachin Sharma
 
Object-oriented concepts
Object-oriented conceptsObject-oriented concepts
Object-oriented concepts
BG Java EE Course
 
Object Oriented Programming Concepts
Object Oriented Programming ConceptsObject Oriented Programming Concepts
Object Oriented Programming Conceptsthinkphp
 
9. Searching & Sorting - Data Structures using C++ by Varsha Patil
9. Searching & Sorting - Data Structures using C++ by Varsha Patil9. Searching & Sorting - Data Structures using C++ by Varsha Patil
9. Searching & Sorting - Data Structures using C++ by Varsha Patil
widespreadpromotion
 

Viewers also liked (13)

Basics of oops concept
Basics of oops conceptBasics of oops concept
Basics of oops concept
 
Oops Concept Java
Oops Concept JavaOops Concept Java
Oops Concept Java
 
Programming Fundamentals With OOPs Concepts (Java Examples Based)
Programming Fundamentals With OOPs Concepts (Java Examples Based)Programming Fundamentals With OOPs Concepts (Java Examples Based)
Programming Fundamentals With OOPs Concepts (Java Examples Based)
 
OOPs in Java
OOPs in JavaOOPs in Java
OOPs in Java
 
Java Basic Oops Concept
Java Basic Oops ConceptJava Basic Oops Concept
Java Basic Oops Concept
 
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
 
oops concept in java | object oriented programming in java
oops concept in java | object oriented programming in javaoops concept in java | object oriented programming in java
oops concept in java | object oriented programming in java
 
Basic concepts of object oriented programming
Basic concepts of object oriented programmingBasic concepts of object oriented programming
Basic concepts of object oriented programming
 
Oops ppt
Oops pptOops ppt
Oops ppt
 
Object-oriented concepts
Object-oriented conceptsObject-oriented concepts
Object-oriented concepts
 
Object Oriented Programming Concepts
Object Oriented Programming ConceptsObject Oriented Programming Concepts
Object Oriented Programming Concepts
 
9. Searching & Sorting - Data Structures using C++ by Varsha Patil
9. Searching & Sorting - Data Structures using C++ by Varsha Patil9. Searching & Sorting - Data Structures using C++ by Varsha Patil
9. Searching & Sorting - Data Structures using C++ by Varsha Patil
 

Similar to Top 10 java_oops_interview_questions

Nitish Chaulagai Java1.pptx
Nitish Chaulagai Java1.pptxNitish Chaulagai Java1.pptx
Nitish Chaulagai Java1.pptx
NitishChaulagai
 
Java ppt
Java pptJava ppt
Java ppt
Apsara G
 
Java Interview Questions For Freshers
Java Interview Questions For FreshersJava Interview Questions For Freshers
Java Interview Questions For Freshers
zynofustechnology
 
Java_notes.ppt
Java_notes.pptJava_notes.ppt
Java_notes.ppt
tuyambazejeanclaude
 
Inheritance and its necessity in java.ppt
Inheritance and its necessity in java.pptInheritance and its necessity in java.ppt
Inheritance and its necessity in java.ppt
ssuserf170c4
 
Ap Power Point Chpt7
Ap Power Point Chpt7Ap Power Point Chpt7
Ap Power Point Chpt7dplunkett
 
Java
JavaJava
Internet and Web Technology (CLASS-15) [JAVA Basics] | NIC/NIELIT Web Technol...
Internet and Web Technology (CLASS-15) [JAVA Basics] | NIC/NIELIT Web Technol...Internet and Web Technology (CLASS-15) [JAVA Basics] | NIC/NIELIT Web Technol...
Internet and Web Technology (CLASS-15) [JAVA Basics] | NIC/NIELIT Web Technol...
Ayes Chinmay
 
4th_class.pdf
4th_class.pdf4th_class.pdf
4th_class.pdf
RumiHossain5
 
Object+oriented+programming+in+java
Object+oriented+programming+in+javaObject+oriented+programming+in+java
Object+oriented+programming+in+java
Ye Win
 
OOP in Java Presentation.pptx
OOP in Java Presentation.pptxOOP in Java Presentation.pptx
OOP in Java Presentation.pptx
mrxyz19
 
Selenium Training .pptx
Selenium Training .pptxSelenium Training .pptx
Selenium Training .pptx
SajidTk2
 
java part 1 computer science.pptx
java part 1 computer science.pptxjava part 1 computer science.pptx
java part 1 computer science.pptx
MUHAMMED MASHAHIL PUKKUNNUMMAL
 
Top 100 Java Interview Questions with Detailed Answers
Top 100 Java Interview Questions with Detailed AnswersTop 100 Java Interview Questions with Detailed Answers
Top 100 Java Interview Questions with Detailed Answers
Whizlabs
 
Java Interview Questions
Java Interview QuestionsJava Interview Questions
Java Interview Questions
Kuntal Bhowmick
 
Introduction to OOP concepts
Introduction to OOP conceptsIntroduction to OOP concepts
Introduction to OOP concepts
Ahmed Farag
 
OOP interview questions & answers.
OOP interview questions & answers.OOP interview questions & answers.
OOP interview questions & answers.
Questpond
 
JAVA-PPT'S.pdf
JAVA-PPT'S.pdfJAVA-PPT'S.pdf
JAVA-PPT'S.pdf
AnmolVerma363503
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
mustafa sarac
 
Inheritance in java
Inheritance in javaInheritance in java

Similar to Top 10 java_oops_interview_questions (20)

Nitish Chaulagai Java1.pptx
Nitish Chaulagai Java1.pptxNitish Chaulagai Java1.pptx
Nitish Chaulagai Java1.pptx
 
Java ppt
Java pptJava ppt
Java ppt
 
Java Interview Questions For Freshers
Java Interview Questions For FreshersJava Interview Questions For Freshers
Java Interview Questions For Freshers
 
Java_notes.ppt
Java_notes.pptJava_notes.ppt
Java_notes.ppt
 
Inheritance and its necessity in java.ppt
Inheritance and its necessity in java.pptInheritance and its necessity in java.ppt
Inheritance and its necessity in java.ppt
 
Ap Power Point Chpt7
Ap Power Point Chpt7Ap Power Point Chpt7
Ap Power Point Chpt7
 
Java
JavaJava
Java
 
Internet and Web Technology (CLASS-15) [JAVA Basics] | NIC/NIELIT Web Technol...
Internet and Web Technology (CLASS-15) [JAVA Basics] | NIC/NIELIT Web Technol...Internet and Web Technology (CLASS-15) [JAVA Basics] | NIC/NIELIT Web Technol...
Internet and Web Technology (CLASS-15) [JAVA Basics] | NIC/NIELIT Web Technol...
 
4th_class.pdf
4th_class.pdf4th_class.pdf
4th_class.pdf
 
Object+oriented+programming+in+java
Object+oriented+programming+in+javaObject+oriented+programming+in+java
Object+oriented+programming+in+java
 
OOP in Java Presentation.pptx
OOP in Java Presentation.pptxOOP in Java Presentation.pptx
OOP in Java Presentation.pptx
 
Selenium Training .pptx
Selenium Training .pptxSelenium Training .pptx
Selenium Training .pptx
 
java part 1 computer science.pptx
java part 1 computer science.pptxjava part 1 computer science.pptx
java part 1 computer science.pptx
 
Top 100 Java Interview Questions with Detailed Answers
Top 100 Java Interview Questions with Detailed AnswersTop 100 Java Interview Questions with Detailed Answers
Top 100 Java Interview Questions with Detailed Answers
 
Java Interview Questions
Java Interview QuestionsJava Interview Questions
Java Interview Questions
 
Introduction to OOP concepts
Introduction to OOP conceptsIntroduction to OOP concepts
Introduction to OOP concepts
 
OOP interview questions & answers.
OOP interview questions & answers.OOP interview questions & answers.
OOP interview questions & answers.
 
JAVA-PPT'S.pdf
JAVA-PPT'S.pdfJAVA-PPT'S.pdf
JAVA-PPT'S.pdf
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Inheritance in java
Inheritance in javaInheritance in java
Inheritance in java
 

More from nishajj

Career guidance: tips for job seekers during holidays
Career guidance: tips for job seekers during holidaysCareer guidance: tips for job seekers during holidays
Career guidance: tips for job seekers during holidays
nishajj
 
Monday motivation: tips to keep you motivated throughout the week
Monday motivation: tips to keep you motivated throughout the weekMonday motivation: tips to keep you motivated throughout the week
Monday motivation: tips to keep you motivated throughout the week
nishajj
 
Why internship is necessary for getting a job
Why internship is necessary for getting a jobWhy internship is necessary for getting a job
Why internship is necessary for getting a job
nishajj
 
Career guidance tips on how to write a cv
Career guidance tips on how to write a cvCareer guidance tips on how to write a cv
Career guidance tips on how to write a cv
nishajj
 
Career advice on how to build respect at workplace
Career advice on how to build respect at workplaceCareer advice on how to build respect at workplace
Career advice on how to build respect at workplace
nishajj
 
Career advice:the job search mistakes to avoid
Career advice:the job search mistakes to avoidCareer advice:the job search mistakes to avoid
Career advice:the job search mistakes to avoid
nishajj
 
Career advice: how to get more job interviews
Career advice: how to get more job interviewsCareer advice: how to get more job interviews
Career advice: how to get more job interviews
nishajj
 
How to use linked in to find job opportunities
How to use linked in to find job opportunitiesHow to use linked in to find job opportunities
How to use linked in to find job opportunities
nishajj
 
All in one place for job seekers
All in one place for job seekersAll in one place for job seekers
All in one place for job seekers
nishajj
 
Career guidance tips on how to become an ifs officer
Career guidance tips on how to become an ifs officerCareer guidance tips on how to become an ifs officer
Career guidance tips on how to become an ifs officer
nishajj
 
Important tips: preparation for campus placement
Important tips: preparation for campus placementImportant tips: preparation for campus placement
Important tips: preparation for campus placement
nishajj
 
Most frequently asked infosys technical interview questions and answers in 2018
Most frequently asked infosys technical interview questions and answers in 2018Most frequently asked infosys technical interview questions and answers in 2018
Most frequently asked infosys technical interview questions and answers in 2018
nishajj
 
Frequently asked tcs technical interview questions and answers
Frequently asked tcs technical interview questions and answersFrequently asked tcs technical interview questions and answers
Frequently asked tcs technical interview questions and answers
nishajj
 
Frequently asked tcs technical interview questions and answers
Frequently asked tcs technical interview questions and answersFrequently asked tcs technical interview questions and answers
Frequently asked tcs technical interview questions and answers
nishajj
 
Preparation tips: how to crack aptitude test
Preparation tips: how to crack aptitude testPreparation tips: how to crack aptitude test
Preparation tips: how to crack aptitude test
nishajj
 
How to prepare jee 2018
How to prepare jee 2018How to prepare jee 2018
How to prepare jee 2018
nishajj
 
Career and scope in hotel management
Career and scope in hotel managementCareer and scope in hotel management
Career and scope in hotel management
nishajj
 
Career advice on how to answer “why did you leave your last job”
Career advice on how to answer “why did you leave your last job”Career advice on how to answer “why did you leave your last job”
Career advice on how to answer “why did you leave your last job”
nishajj
 
Top entrance exams: explore career options after 12th
Top entrance exams: explore career options after 12thTop entrance exams: explore career options after 12th
Top entrance exams: explore career options after 12th
nishajj
 
Resume tips:how to highlight job skills and standout amidst others
Resume tips:how to highlight job skills and standout amidst othersResume tips:how to highlight job skills and standout amidst others
Resume tips:how to highlight job skills and standout amidst others
nishajj
 

More from nishajj (20)

Career guidance: tips for job seekers during holidays
Career guidance: tips for job seekers during holidaysCareer guidance: tips for job seekers during holidays
Career guidance: tips for job seekers during holidays
 
Monday motivation: tips to keep you motivated throughout the week
Monday motivation: tips to keep you motivated throughout the weekMonday motivation: tips to keep you motivated throughout the week
Monday motivation: tips to keep you motivated throughout the week
 
Why internship is necessary for getting a job
Why internship is necessary for getting a jobWhy internship is necessary for getting a job
Why internship is necessary for getting a job
 
Career guidance tips on how to write a cv
Career guidance tips on how to write a cvCareer guidance tips on how to write a cv
Career guidance tips on how to write a cv
 
Career advice on how to build respect at workplace
Career advice on how to build respect at workplaceCareer advice on how to build respect at workplace
Career advice on how to build respect at workplace
 
Career advice:the job search mistakes to avoid
Career advice:the job search mistakes to avoidCareer advice:the job search mistakes to avoid
Career advice:the job search mistakes to avoid
 
Career advice: how to get more job interviews
Career advice: how to get more job interviewsCareer advice: how to get more job interviews
Career advice: how to get more job interviews
 
How to use linked in to find job opportunities
How to use linked in to find job opportunitiesHow to use linked in to find job opportunities
How to use linked in to find job opportunities
 
All in one place for job seekers
All in one place for job seekersAll in one place for job seekers
All in one place for job seekers
 
Career guidance tips on how to become an ifs officer
Career guidance tips on how to become an ifs officerCareer guidance tips on how to become an ifs officer
Career guidance tips on how to become an ifs officer
 
Important tips: preparation for campus placement
Important tips: preparation for campus placementImportant tips: preparation for campus placement
Important tips: preparation for campus placement
 
Most frequently asked infosys technical interview questions and answers in 2018
Most frequently asked infosys technical interview questions and answers in 2018Most frequently asked infosys technical interview questions and answers in 2018
Most frequently asked infosys technical interview questions and answers in 2018
 
Frequently asked tcs technical interview questions and answers
Frequently asked tcs technical interview questions and answersFrequently asked tcs technical interview questions and answers
Frequently asked tcs technical interview questions and answers
 
Frequently asked tcs technical interview questions and answers
Frequently asked tcs technical interview questions and answersFrequently asked tcs technical interview questions and answers
Frequently asked tcs technical interview questions and answers
 
Preparation tips: how to crack aptitude test
Preparation tips: how to crack aptitude testPreparation tips: how to crack aptitude test
Preparation tips: how to crack aptitude test
 
How to prepare jee 2018
How to prepare jee 2018How to prepare jee 2018
How to prepare jee 2018
 
Career and scope in hotel management
Career and scope in hotel managementCareer and scope in hotel management
Career and scope in hotel management
 
Career advice on how to answer “why did you leave your last job”
Career advice on how to answer “why did you leave your last job”Career advice on how to answer “why did you leave your last job”
Career advice on how to answer “why did you leave your last job”
 
Top entrance exams: explore career options after 12th
Top entrance exams: explore career options after 12thTop entrance exams: explore career options after 12th
Top entrance exams: explore career options after 12th
 
Resume tips:how to highlight job skills and standout amidst others
Resume tips:how to highlight job skills and standout amidst othersResume tips:how to highlight job skills and standout amidst others
Resume tips:how to highlight job skills and standout amidst others
 

Recently uploaded

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)
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
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
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
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
 
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
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
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 basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
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
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 

Recently uploaded (20)

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
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
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
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
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
 
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
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).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 basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 

Top 10 java_oops_interview_questions

  • 1. Top 10 Java Oops Interview Questions http://crbtech.in/Student-Review
  • 2. Top 10 Java Oops Interview Questions http://crbtech.in/Student-Review 1.What exactly is the Java’s oops concept? Oops is a methodology that gives a way for modularizing a program by developing a partitioned memory location for both data and its methods that can be utilized as format for creating duplicates of such modules on interest. The four types include: Inheritance Polymorphism Encapsulation Abstraction
  • 3. Top 10 Java Oops Interview Questions http://crbtech.in/Student-Review 2. What do you mean by encapsulation? The process of associating data with related methods is called encapsulation. Class forms the core of this. 3. Define a class: In case of oops, a class is a collection of variable/s and method/s for a particular type of object. An object is considered to be an instance of a class. It happens to be a user defined data type in Java. 4. What do you mean by an object? It forms an instance of a class. Object can be defined as any entity that has attributes, methods associated with it. An object is used to allocate dynamic memory to a class. 5. State the object characteristics The three characteristics of an object are: Identity Behavior State 6. Explain inheritance Self explanatory, it means to intake what already exists. One of the most important concepts. The purpose is purely re-usability. Used for inheriting properties from one class object to another one. In simple terms, just like you inherit qualities from your parents!
  • 4. Top 10 Java Oops Interview Questions http://crbtech.in/Student-Review 7. How is inheritance put to use in Java? Inheritance is used in Java with the help of two keywords namely ‘extends’ and ‘implements’. With the help of ‘extends’, inheritance between two interfaces or classes can be established. While, ‘implements’ is used to establish inheritance amongst interface and class. e.g. package com.instanceofjava; class A{ } package com.instanceofjava; class B extends A{ }
  • 5. Top 10 Java Oops Interview Questions http://crbtech.in/Student-Review 8. State the different types of inheritances Inheritance is divided into two main types namely- Multiple inheritance Multilevel inheritance Multiple inheritance: The funda of getting objects from multiple classes into single class object is called multiple inheritance. It is not supported in Java programming. Multilevel inheritance: Getting properties from object of one class to another class object, is called multilevel inheritance. e.g. package com.instanceofjava; class A{ } class B extends A{} class C extends B{}
  • 6. Top 10 Java Oops Interview Questions http://crbtech.in/Student-Review 9. Define polymorphism Using same names for more than one method. One of the most popular java interview questions. Two types are: Static polymorphism and Dynamic polymorphism Static: Also called as method overloading Multiple methods with same name and different parameters. Dynamic: Defining more than one methods with identical signature in sub class and super class. The always executed method in this case will be sub most object.
  • 7. Top 10 Java Oops Interview Questions http://crbtech.in/Student-Review 10. Elaborate this and super keywords Super: A keyword used to store super class non -static members reference in sub class object. Used to differentiate between sub class and super class members if the names are same. System.out.println(super); would give compilation Error. This: Current object reference is stored in this. Should be used when non-static variable and local variables’ name happens to be one. System.out.print(this); would work fine. So, these were some of the popular oops concepts and the very basic ones that form Java core interview questions. There are many institutes present for Java training Pune. You can benefit by joining them.
  • 8. Top 10 Java Oops Interview Questions http://crbtech.in/Student-Review