Solved

Which of the Following Statements Is False

Question 52

Multiple Choice

Which of the following statements is false?


A) Functional interfaces must contain only one method and that method must be abstract.
B) When a class implements an interface with default methods and does not override them, the class inherits the default methods' implementations. An interface's designer can now evolve an interface by adding new default and static methods without breaking existing code that implements the interface.
C) If one class inherits the same default method from two interfaces, the class must override that method; otherwise, the compiler will generate a compilation error.
D) You can create your own functional interfaces by ensuring that each contains only one abstract method and zero or more default or static methods.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents