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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly