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.
You might also like to view...
Which of the following is not a common window element?
A) Ribbon B) Move button C) Close button D) Title bar
Which of the following is data that would NOT be found in a cookie?
A. Information it reads from your hard drive B. Access date C. Customer number D. Shopping cart number