1.

What is the return type of lambda expression?(a) String(b) Object(c) void(d) FunctionThis question was posed to me in examination.This question is from Java 8 Features in division Autoboxing & Miscellaneous of Java

Answer»

Correct answer is (d) Function

To explain: LAMBDA expression ENABLES us to pass FUNCTIONALITY as an argument to another method, such as what action should be taken when someone CLICKS a button.



Discussion

No Comment Found

Related InterviewSolutions