Lambda Expressions Flashcards
Modern Java In Action (2 cards)
1
Q
Lambda expression
A
Concise representation of an anonymous function that can be passed around.
It doesn’t have a name, but it has a list of parameters, a body, a return type, and also possibly a list of exceptions that can be thrown.
A lambda expression can be passed as argument to a method or stored in variable.
2
Q
A