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

1 Expert Approved Answer
Step: 1 Unlock

f A functional interface can be implemented by lambda ex... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming 8th Questions!