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

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

Viewers also liked (12)

60 segundos bellisimo06
60 segundos bellisimo0660 segundos bellisimo06
60 segundos bellisimo06
 
La comunicación-Carmen Lucidia Aguilar
La comunicación-Carmen Lucidia AguilarLa comunicación-Carmen Lucidia Aguilar
La comunicación-Carmen Lucidia Aguilar
 
Bellezas escondidas de méxico
Bellezas escondidas de méxicoBellezas escondidas de méxico
Bellezas escondidas de méxico
 
viewbook!
viewbook!viewbook!
viewbook!
 
Puertos de una computadora
Puertos de una computadora Puertos de una computadora
Puertos de una computadora
 
Culturageneral
CulturageneralCulturageneral
Culturageneral
 
Protocolo de investigacion
Protocolo de investigacionProtocolo de investigacion
Protocolo de investigacion
 
Marco teorico
Marco teoricoMarco teorico
Marco teorico
 
Internet ensayo
Internet ensayo Internet ensayo
Internet ensayo
 
Leonela calles antony garcia informatica.
Leonela calles   antony garcia informatica.Leonela calles   antony garcia informatica.
Leonela calles antony garcia informatica.
 
Los Social Media en Centros de Negocios, by e-deon.net
Los Social Media en Centros de Negocios, by e-deon.netLos Social Media en Centros de Negocios, by e-deon.net
Los Social Media en Centros de Negocios, by e-deon.net
 
Agència de comunicació
Agència de comunicacióAgència de comunicació
Agència de comunicació
 

Similar to Top 10 java oops interview questions

Nitish Chaulagai Java1.pptx
Nitish Chaulagai Java1.pptxNitish Chaulagai Java1.pptx
Nitish Chaulagai Java1.pptxNitishChaulagai
 
Java Interview Questions For Freshers
Java Interview Questions For FreshersJava Interview Questions For Freshers
Java Interview Questions For Fresherszynofustechnology
 
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.pptssuserf170c4
 
Ap Power Point Chpt7
Ap Power Point Chpt7Ap Power Point Chpt7
Ap Power Point Chpt7dplunkett
 
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
 
Object+oriented+programming+in+java
Object+oriented+programming+in+javaObject+oriented+programming+in+java
Object+oriented+programming+in+javaYe Win
 
OOP in Java Presentation.pptx
OOP in Java Presentation.pptxOOP in Java Presentation.pptx
OOP in Java Presentation.pptxmrxyz19
 
Selenium Training .pptx
Selenium Training .pptxSelenium Training .pptx
Selenium Training .pptxSajidTk2
 
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 AnswersWhizlabs
 
Java Interview Questions
Java Interview QuestionsJava Interview Questions
Java Interview QuestionsKuntal Bhowmick
 
Introduction to OOP concepts
Introduction to OOP conceptsIntroduction to OOP concepts
Introduction to OOP conceptsAhmed Farag
 
OOP interview questions & answers.
OOP interview questions & answers.OOP interview questions & answers.
OOP interview questions & answers.Questpond
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programmingmustafa sarac
 

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 holidaysnishajj
 
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 weeknishajj
 
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 jobnishajj
 
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 cvnishajj
 
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 workplacenishajj
 
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 avoidnishajj
 
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 interviewsnishajj
 
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 opportunitiesnishajj
 
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 seekersnishajj
 
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 officernishajj
 
Important tips: preparation for campus placement
Important tips: preparation for campus placementImportant tips: preparation for campus placement
Important tips: preparation for campus placementnishajj
 
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 2018nishajj
 
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 answersnishajj
 
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 answersnishajj
 
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 testnishajj
 
How to prepare jee 2018
How to prepare jee 2018How to prepare jee 2018
How to prepare jee 2018nishajj
 
Career and scope in hotel management
Career and scope in hotel managementCareer and scope in hotel management
Career and scope in hotel managementnishajj
 
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 12thnishajj
 
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 othersnishajj
 

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

Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
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
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 

Recently uploaded (20)

Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
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
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 

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