Java OCA OCP Practice Question 1271

Question

Which of the following statements about interfaces is not true?

  • A. An interface can extend another interface.
  • B. An interface can implement another interface.
  • C. A class can implement two interfaces.
  • D. A class can extend another class.


B.

Note

Interfaces can extend other interfaces, making Option A incorrect.

An interface cannot implement another interface, making Option B the correct answer.

A class can implement any number of interfaces, making Option C incorrect.

A class can extend another class, making Option D incorrect.




PreviousNext

Related