ExamVeda
Login
Home
Interfaces and Abstract Classes
?

In Java, can an abstract class extend another class?

Answer & Solution
Correct Answer: Option B
In Java, abstract classes can extend both abstract and concrete classes.

When an abstract class extends another class (whether abstract or concrete), it inherits the properties and methods of that class.

An abstract class is allowed to inherit from a concrete class and can override or use the methods from the superclass.

Option A is incorrect because abstract classes can extend other classes.

Option C is incorrect since there is no requirement for the superclass to be marked as "static."

Option D is incorrect as the subclass does not need to be marked "final" to extend a class.
Examveda
Question posted by Examveda
Community

Join the Discussion

1 Comment
Vansh Dosi
Vansh Dosi 2 years ago
wrong the correct answer would be B