Skip to content
Sharp

Core Java · interview question

What happens if a subclass does not implement an abstract method from its superclass?

Multiple choiceEasychapter-5-curatedpremiumcore-javacode-reading-with-related-types
Choose one answer
Answer and explanation

Correct answer

A. The subclass must be declared abstract.

Why

If a subclass does not implement an abstract method from its superclass, it must itself be declared abstract, as it does not provide a concrete implementation for all inherited abstract methods.

Test yourself on Core Java

A free test with instant, explained results. No account needed.

Start free test
All Core Java questions →