Filter interviews by
The purpose of OOP is to provide a structured and modular approach to software development.
OOP allows for the organization of code into reusable objects.
It promotes code reusability, maintainability, and scalability.
Encapsulation, inheritance, and polymorphism are key concepts in OOP.
Example: Creating a class 'Car' with properties and methods to represent a car object.
Object-oriented programming concepts in Java
Encapsulation: bundling data and methods together
Inheritance: creating new classes from existing ones
Polymorphism: using a single interface to represent multiple forms
Abstraction: hiding complex implementation details
Encapsulation: grouping related data and methods together
Method overloading is when multiple methods have the same name but different parameters. Method overriding is when a subclass provides a different implementation of a method that is already defined in its superclass.
Method overloading is achieved by having methods with the same name but different parameters.
Method overriding is achieved by having a subclass provide a different implementation of a method that is already...
Java doesn't support multiple inheritance to avoid diamond problem and complexity.
Java supports multiple interface inheritance
Diamond problem occurs when two superclasses have a common method
C++ supports multiple inheritance but requires virtual inheritance to avoid diamond problem
Composition and delegation can be used instead of multiple inheritance
Top trending discussions
I applied via Campus Placement and was interviewed in May 2024. There were 2 interview rounds.
It was good experience, it build my confident
I applied via Campus Placement and was interviewed in May 2024. There were 2 interview rounds.
It was good experience, it build my confident
posted on 23 May 2024
I applied via Naukri.com and was interviewed in Apr 2024. There were 2 interview rounds.
It's pretty basic so you can solve it easy
Some programming questions asked like oops related
Software Engineer
31
salaries
| ₹1.8 L/yr - ₹8.2 L/yr |
Software Developer
22
salaries
| ₹3 L/yr - ₹10 L/yr |
Senior Software Engineer
8
salaries
| ₹5 L/yr - ₹11.4 L/yr |
HR Executive
6
salaries
| ₹1.8 L/yr - ₹3 L/yr |
QA Engineer
6
salaries
| ₹2.2 L/yr - ₹8.5 L/yr |
TCS
Infosys
Wipro
HCLTech