Skip to content
Sharp

Engineering Interviews · interview question

Why do teams use an Interface over an Abstract Class in Java in production code?

Multiple choiceEasychapter-20-curatedpremiumengineering-interviewsjvm-trivia
Choose one answer
Answer and explanation

Correct answer

C. Interfaces support multiple inheritance.

Why

Interfaces in Java support multiple inheritance, allowing a class to implement multiple interfaces. This provides greater flexibility than abstract classes, which a class can only extend once.

Test yourself on Engineering Interviews

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

Start free test
All Engineering Interviews questions →