Skip to content
Sharp

Core Java · interview question

Consider a superclass with a method that is not overridden in its subclass. Which method is called when the method is invoked on an instance of the subclass?

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

Correct answer

C. The superclass method.

Why

If a subclass does not override a method, the method from the superclass is used when invoked on an instance of the subclass.

Test yourself on Core Java

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

Start free test
All Core Java questions →