this() is used to invoke a constructor of the same class.
Q: – Is it possible to use few methods of an interface in a class ? If so, how?
Yes. Declare the class as abstract.
Q: – How do you achieve multiple inheritances in Java?
We canuse interfaces.
super() is used to invoke a super class constructor
Abstract classes are classes that contain one or more abstract methods. An abstract method is a method that is declared, but contains no implementation.
Submitted By:-Ankur Jain Email-ID: – email@example.com