Skip to content
Sharp

Core Java · interview question

Which statement about interfaces in Java is correct?

Multiple choiceEasychapter-5-curatedpremiumcore-javaupcasting-and-dynamic-dispatch
Choose one answer
Answer and explanation

Correct answer

D. Interfaces can define static methods.

Why

Since Java 8, interfaces can define static methods. These methods belong to the interface itself and are not inherited by implementing classes.

Test yourself on Core Java

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

Start free test
All Core Java questions →