Java OCA OCP Practice Question 638

Question

Which of the following statements are correct?

Select 3 options

  • A. An abstract class can be extended by an abstract or a concrete class.
  • B. A concrete class can be extended by an abstract or a concrete class.
  • C. An interface can be extended by another interface.
  • D. An interface can be extended by an abstract class.
  • E. An interface can be extended by a concrete class.
  • F. An abstract class cannot implement an interface.



Correct Options are  : A B C

Note

A class "implements" an interface.

It does not "extend" an interface.

Any class, whether abstract or concrete, can implement any interface.




PreviousNext

Related