What is a default method? Why do we need default methods in java 8 interfaces?
How will you define abstract classes?
Explain about a class in oop?
What is the significance of encapsulation?
What is a ternary operator?
Do we require a parameter for constructors?
Can you call the base class method without creating an instance?
A class inherits from 2 interfaces and both the interfaces have the same method name as shown below. How should the class implement the drive method for both car and bus interface?
Explain what is an object?
Explain about inheritance?
Explain the implementation phase with respect to oop?
Explain the mechanism of composition?
Can we have a default method definition in the interface without specifying the keyword "default"?
What are sealed modifiers?
What is the difference between abstract & interface?