Skip to content
Sharp

Core Java · interview question

Which of the following is true about a class that implements an interface in Java?

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

Correct answer

A. It must provide implementations for all methods declared in the interface.

Why

A class that implements an interface must provide concrete implementations for all the methods declared within the interface. Otherwise, the class must be declared abstract.

Test yourself on Core Java

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

Start free test
All Core Java questions →