Skip to content
Sharp

Object-oriented programming · interview question

Which of the following statements about Java interfaces is correct?

Multiple choiceMediumchapter-5-curatedpremiumoopinterfaces
Choose one answer
Answer and explanation

Correct answer

A. Interfaces can contain method declarations and static methods.

Why

Java interfaces can contain abstract methods, static methods, and default methods. Static methods in interfaces can be accessed using the interface name.

Test yourself on Object-oriented programming

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

Start free test
All Object-oriented programming questions →