Skip to content
Sharp

Object-oriented programming · interview question

Which Java keyword would you use to declare a class that implements an interface in Java?

Multiple choiceEasychapter-5-curatedpremiumooppolymorphism
Choose one answer
Answer and explanation

Correct answer

C. Implements

Why

The keyword 'implements' is used to declare that a class implements an interface. This signals that the class will provide concrete implementations for the methods defined in the interface.

Test yourself on Object-oriented programming

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

Start free test
All Object-oriented programming questions →