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.

a. Functional interfaces must contain only one method and that method must be abstract. Actually, functional interfaces must contain only one abstract method, but may also contain default methods and static methods that are fully implemented in the interface declarations.

Computer Science & Information Technology

You might also like to view...

The default file extension for a PowerPoint template is ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

The ________ feature displays any values in the column that match what the user has typed so far

Fill in the blank(s) with correct word

Computer Science & Information Technology