Skip to content
Sharp

Object-oriented programming · interview question

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

Multiple choiceMediumchapter-5-curatedpremiumoopabstract-classes
Choose one answer
Answer and explanation

Correct answer

D. Interfaces can provide method implementations using 'default' keyword.

Why

Java interfaces can provide method implementations using the 'default' keyword, allowing for some level of implementation sharing similar to abstract classes.

Test yourself on Object-oriented programming

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

Start free test
All Object-oriented programming questions →