Skip to content
Sharp

Object-oriented programming · interview question

How would you explain the key difference between an abstract class and an interface in a Java interview?

Multiple choiceEasychapter-5-curatedpremiumoopcomposition-vs-inheritance
Choose one answer
Answer and explanation

Correct answer

C. Abstract classes can have method implementations; interfaces cannot.

Why

Abstract classes can have method implementations, allowing them to provide a common base behavior, while interfaces cannot (though they can have default methods).

Test yourself on Object-oriented programming

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

Start free test
All Object-oriented programming questions →