Skip to content
Sharp

Core Java · interview question

Which of the following statements about interfaces in Java is true?

Multiple choiceMediumchapter-5-curatedpremiumcore-javacode-reading-with-related-types
Choose one answer
Answer and explanation

Correct answer

B. Interfaces can have default methods.

Why

Since Java 8, interfaces can have default methods, which provide a default implementation. They cannot have instance fields and can extend other interfaces.

Test yourself on Core Java

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

Start free test
All Core Java questions →