Java OCA OCP Practice Question 1445

Question

Which of these statements concerning interfaces are true?

Select 2 options

  • A. An interface may extend an interface.
  • B. An interface may extend a class and may implement an interface.
  • C. A class can implement an interface and extend a class.
  • D. A class can extend an interface and can implement a class.
  • E. An interface can only be implemented and cannot be extended.


Correct Options are  : A C

Note

The keyword implements is used when a class inherits method prototypes from an interface.

The keyword extends is used when an interface inherits from another interface, or a class inherits from another class.




PreviousNext

Related