Home / Programming MCQs / JAVA MCQs / Question

P

Pushkar • 380 Points
Valuable

Q. What is a lambda expression in Java 8?

(A) A new type of class
(B) A shorthand way of creating an anonymous function
(C) A special type of method that can only be called once
(D) A way to create a singleton object
Explanation by: Pushkar
A lambda expression is a concise way to represent an anonymous function that can be passed around as a value.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.