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
You might also like to view...
A technician has replaced a memory stick in a computer. After the operating system starts to boot, the computer displays a BSOD. Which of the following is the MOST likely cause?
A. The chipset firmware needs to be updated B. The motherboard has failed C. The hard drive has failed D. The memory is not seated properly
After we create a(n) ____, we can send a corresponding message to a(n) ____ to elicit a desired behavior.
A. object; method B. method; object C. class; object D. object; class