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 ____ point is the point from which Photoshop will measure any change in position.

a. central b. radial c. reference d. axial

Computer Science & Information Technology

What is the keyboard shortcut for sorting by star rating?

What will be an ideal response?

Computer Science & Information Technology

A hashing function acts on a given key by returning its absolute position in an array.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The operation of adding a new structure to a dynamically linked list is called a(n) ____.

A. PUSH B. ENQUEUE C. INSERT D. ADD

Computer Science & Information Technology