Lambdas Flashcards

1
Q

What are Lambda Expressions?

A

Lambda provides us a simpler way to work with interfaces that implement one method.

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

What are the parts of a Lambda Expression?

A

1 - The arguments list
2 - Arrow token
3 - Body

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

Where do Lambda Expressions can be implemented?

A

Lambda Expressions can be implemented only by replacing interfaces that contains exactly one method. Those interfaces are also called Functional Interfaces.

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

What is the scope of a Lambda Expression?

A

Lambda expressions are treated as nested blocks which means they have the same scope as any other block would have.

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

What does Effectively final means?

A

It means that although a variable is not declared as final, its value never change.

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