You can declare that an interface is a functional interface by preceding it with the @FunctionalInterface annotation. The compiler will then ensure that the interface contains ________; otherwise,

it’ll generate a compilation error.
a. no abstract methods
b. all abstract methods
c. only one abstract method
d. one or more abstract methods.


c. only one abstract method

Computer Science & Information Technology

You might also like to view...

Critical Thinking Questions Case 1-1 ?Your company recently upgraded to Microsoft Office 2016. Your supervisor has asked you to explain some of the new features in Microsoft Word. You start out with a blank Word document window. What is the name of the flashing vertical bar that appears in the blank part of the window? a.Insertion pointc.Indexb.ScreenTipd.Toolkit

What will be an ideal response?

Computer Science & Information Technology

A project management strategy that calculates the total duration of a project based upon each identified task, earmarking tasks that are critical, is called the ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Which of the following is not affected by inconsistent data?

A. Sorting B. Filtering C. Queries D. File size

Computer Science & Information Technology

To cancel a meeting, click the meeting in the appointment area and then click the ____ Meeting button.

A. Cancel B. Delete C. Remove D. End

Computer Science & Information Technology