Posts

Showing posts with the label Inheritance

OOPs Interview Questions for Fresher and Experienced

1) What are the main building blocks of oops? 2) What do you mean by inheritance? 3) How to achieve inheritance concept and inheritance is also known as? 4) How many types of inheritance in java and how many types of inheritance not supported by java? 5) How to prevent inheritance concept? 6) What is the purpose of extends keyword? 7) What do you mean by cyclic inheritance java supporting or not? 8) What is the difference between child class and parent class? 9) What is the root class for all java classes? 10) Inside the constructor if we are not providing this() and super() keyword the compiler generated which type of super keyword? 11) How to call super class constructors? 12) Is it possible to use both super and this keyword inside the method? 13) Is it possible to use both super and this keyword inside the constructor? 14) If the child class and parent class contains same variable name that situation how to call parent class variable in child class? 15) One class ab...