Blog Archives
Page 1 of 2
1 2

01: Why favour composition over inheritance?

This not only one of the most popular Java OOP Interview Questions & Answers asked 90% of the time in job interview, but also a key OOP concept you must know well. The correct answer depends on the problem you are trying to solve, and the answer you give reveal a lot about your know-hows &

Read more ›



03: Q16 – Q17 Java Polymorphism vs Overriding vs Overloading

Polymorphism is the ability of a class instance to behave as if it were an instance of another class in its inheritance tree, most often one of its ancestor classes. Overriding is the means by which you achieve polymorphism. Java Polymorphism vs Overriding vs Overloading explained in detail to handle drill down Java OOP interview questions with ease when quizzed further.

Read more ›



04: Q18 Explain abstraction, encapsulation, Inheritance, and polymorphism with the given Java code?

Q18. Given code:

A18. Firstly, let’s take abstraction and encapsulation as the difference is subtle. Abstraction is often not possible without encapsulation because if a class exposes its internal state, it can’t change its inner workings. Encapsulation hides the underlying state.

Read more ›



05: Q19- Q24 How to create a well designed Java application with OOP?

A software application is built by coupling various classes, modules, and components. Without coupling, you can’t build a software system. But, the software applications are always subject to changes and enhancements. So, you need to build your applications such a way that they can not only adapt to growing requirements,...

Members Only Content
Log In Register Home


06: Q25 – Q32 Design principles interview questions & answers for Java developers

Design principles interview questions & answers for Java developers so that you can expand your OOP skills to design robust Java apps Q25. What are the SOLID design principles? A25. SOLID is an abbreviation for 5 design principles. SRP (Single Responsibility Principle) If you have a class with calculation logic,...

Members Only Content
Log In Register Home


Page 1 of 2
1 2

800+ Java Interview Q&As Menu

Top