Examveda
Examveda

Which of the following statements regarding abstract classes are true?

A. An abstract class can be extended.

B. A subclass of a non-abstract superclass can be abstract.

C. A subclass can override a concrete method in a superclass to declare it abstract.

D. An abstract class can be used as a data type.

E. All of the above

Answer: Option E


This Question Belongs to Java Program >> Interfaces And Abstract Classes

Join The Discussion

Comments ( 2 )

  1. Alok Pranav
    Alok Pranav :
    1 year ago

    Option B) A subclass of a non-abstract superclass can be abstract
    And
    Option D) An abstract class can be used as a datatype
    I don't know before those options is true.

  2. Mohamed Tanveejularsath
    Mohamed Tanveejularsath :
    7 years ago

    I felt option B is not true regarding abstract class

Related Questions on Interfaces and Abstract Classes

What is an interface in Java?

A. A contract specifying a set of methods that a class must implement

B. A class that cannot be instantiated

C. A class that contains only static methods

D. A subclass of the Object class