Question: Which statement is true about functional interfaces and lambda expressions? Select the one correct answer. (a) A functional interface can be implemented only by lambda
Which statement is true about functional interfaces and lambda expressions?
Select the one correct answer.
(a) A functional interface can be implemented only by lambda expressions.
(b) A functional interface declaration can have only one method declaration.
(c) In the body of a lambda expression, only public members in the enclosing class can be accessed.
(d) In the body of a lambda expression, all local variables in the enclosing scope can be accessed.
(e) A lambda expression in a program can implement only one functional interface.
(f) None of the above.
Step by Step Solution
3.39 Rating (149 Votes )
There are 3 Steps involved in it
f A functional interface can be implemented by lambda ex... View full answer
Get step-by-step solutions from verified subject matter experts
