Skip to content
Sharp

Core Java · interview question

How can polymorphism be achieved in Java?

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

Correct answer

B. By using method overriding.

Why

Polymorphism in Java is primarily achieved through method overriding, where a subclass provides a specific implementation of a method declared in its parent class or interface.

Test yourself on Core Java

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

Start free test
All Core Java questions →