Lambdas Flashcards
1
Q
What are Lambda Expressions?
A
Lambda provides us a simpler way to work with interfaces that implement one method.
2
Q
What are the parts of a Lambda Expression?
A
1 - The arguments list
2 - Arrow token
3 - Body
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.
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.
5
Q
What does Effectively final means?
A
It means that although a variable is not declared as final, its value never change.