Q1. What is the difference between an abstract class and an interface?
An interface declares a contract: a set of method signatures with no state that any type can implement. A class can implement many interfaces, which models capability. An...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (4 available).
An interface declares a contract: a set of method signatures with no state that any type can implement. A class can implement many interfaces, which models capability. An...
The Liskov Substitution Principle says objects of a subtype must be usable anywhere the supertype is expected, without the caller knowing or behaving differently. Subtype...
Inheritance is an is-a relationship: `Dog extends Animal` because every dog is an animal. Composition is a has-a relationship: `Car` holds an `Engine`. Inheritance gives ...
The diamond problem occurs when a class inherits from two classes that share a common ancestor, so the same base members are inherited along two paths. Ambiguity arises o...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.