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

Java buzzwords
Java buzzwordsJava buzzwords
Java buzzwordsramesh517
 
A Short Java RMI Tutorial
A Short Java RMI TutorialA Short Java RMI Tutorial
A Short Java RMI TutorialGuo Albert
 
Java RMI Presentation
Java RMI PresentationJava RMI Presentation
Java RMI PresentationMasud Rahman
 
Java OOP s concepts and buzzwords
Java OOP s concepts and buzzwordsJava OOP s concepts and buzzwords
Java OOP s concepts and buzzwordsRaja Sekhar
 

Viewers also liked (6)

Dacj 1-1 b
Dacj 1-1 bDacj 1-1 b
Dacj 1-1 b
 
Oops Paper
Oops PaperOops Paper
Oops Paper
 
Java buzzwords
Java buzzwordsJava buzzwords
Java buzzwords
 
A Short Java RMI Tutorial
A Short Java RMI TutorialA Short Java RMI Tutorial
A Short Java RMI Tutorial
 
Java RMI Presentation
Java RMI PresentationJava RMI Presentation
Java RMI Presentation
 
Java OOP s concepts and buzzwords
Java OOP s concepts and buzzwordsJava OOP s concepts and buzzwords
Java OOP s concepts and buzzwords
 

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

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
_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
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
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
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
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
 
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
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
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
 
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
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 

Recently uploaded (20)

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
_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
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
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
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
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
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
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
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
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
 
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
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 

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