Skip to content
Sharp

Core Java · interview question

Which of the following is NOT a valid reason to use interfaces with default methods?

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

Correct answer

D. To manage state within interfaces

Why

Interfaces with default methods cannot manage state. They are intended to provide method implementations, not to hold data or state information, which is typically managed in classes.

Test yourself on Core Java

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

Start free test
All Core Java questions →