Skip to content
Sharp

Core Java · interview question

Can a Java interface contain static methods?

Multiple choiceEasychapter-5-curatedpremiumcore-javadefault-methods-and-multiple-inheritance
Choose one answer
Answer and explanation

Correct answer

C. Yes, since Java 8

Why

Since Java 8, interfaces can contain static methods. These methods belong to the interface itself rather than any instance of a class implementing the interface.

Test yourself on Core Java

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

Start free test
All Core Java questions →