Skip to content
Sharp

Object-oriented programming · interview question

Which of these statements about abstract classes in Java is true?

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

Correct answer

C. They can have both abstract and non-abstract methods.

Why

Abstract classes in Java can have a combination of abstract and non-abstract methods. They cannot be instantiated directly, but can be subclassed.

Test yourself on Object-oriented programming

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

Start free test
All Object-oriented programming questions →