Which keyword is used to implement an interface in Java?

  • abstract
  • extends
  • implements
  • interface
In Java, the implements keyword is used to implement an interface. When a class implements an interface, it must provide concrete implementations for all the methods declared in that interface. The other options (extends, interface, abstract) are used for different purposes and are not used to implement interfaces.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *