Explore questions covering topics from classes, objects, inheritance, abstraction, polymorphism and more .
Explain the Open/Closed Principle (OCP).
What is the 'strictfp' keyword?
What is 'static' keyword in Java (or a similar language)?
What is the purpose of the 'default' keyword in interfaces?
What is multiple inheritance and why do some languages like Java not support it?
What is the meaning of 'loosely coupled'?
What is the difference between checked and unchecked exceptions?
Explain the concept of 'final' keyword in Java.
What is an object's state and behavior?
Implement a class that models a basic bank account, with methods to deposit, withdraw, and check balance. Ensure the balance cannot be negative.
What is the difference between method overloading and method overriding?
Can a class implement multiple interfaces?
What is the Strategy design pattern?
What is the 'is-a' vs 'has-a' relationship?
Design a set of classes for a simple car. It should have properties like make, model, and year, and methods like start() and stop().
Explain the Open/Closed Principle (OCP).
What is the 'strictfp' keyword?
What is 'static' keyword in Java (or a similar language)?
What is the purpose of the 'default' keyword in interfaces?
What is multiple inheritance and why do some languages like Java not support it?
What is the meaning of 'loosely coupled'?
What is the difference between checked and unchecked exceptions?
Explain the concept of 'final' keyword in Java.
What is an object's state and behavior?
Implement a class that models a basic bank account, with methods to deposit, withdraw, and check balance. Ensure the balance cannot be negative.
What is the difference between method overloading and method overriding?
Can a class implement multiple interfaces?
What is the Strategy design pattern?
What is the 'is-a' vs 'has-a' relationship?
Design a set of classes for a simple car. It should have properties like make, model, and year, and methods like start() and stop().