Explain Abstract class in Java?

Dennis Sandoval
Dennis Sandoval

Posted On: Jan 07, 2021

 

A class that is declared using the “abstract” keyword is known as The abstract class. It can have abstract methods(methods without body) as well as concrete methods (regular methods with the body) whereas a normal class(non-abstract class) cannot have abstract methods. An abstract class can not be instantiated. It does not allow to create an object of it.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Java inheritance interview questions

    Explain Inheritance in Java?

    Inheritance is one of the most important pillars of the OOPs (Object Oriented programming system). Inheritance in Java is a mechanism by which one class acquires all the properties and behaviors of an...

    Java inheritance interview questions

    Enlist diffrent types of Inheritance supported by Java?

    The various kinds of inheritance supported by Java.Single Inheritance: Single Inheritance is the easy inheritance of all, while a group lengthens another group (Simply one class) then one cal...

    Java inheritance interview questions

    What is the difference between Inheritance and Encapsulation?

    The major difference between Inheritance and Encapsulation are as follows -Inheritance EncapsulationInheritance is the process or mechanism by which you can acquire the properties and b...