Skip to content
Sharp

Core Java · interview question

How can you achieve abstraction in Java?

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

Correct answer

C. By using abstract classes and interfaces.

Why

Abstraction in Java can be achieved using abstract classes and interfaces, both of which allow you to define methods without implementations, leaving the details to concrete subclasses.

Test yourself on Core Java

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

Start free test
All Core Java questions →