Solved

You Can Declare That an Interface Is a Functional Interface

Question 51

Multiple Choice

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.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions