Lambdas Flashcards Preview

Java > Lambdas > Flashcards

Flashcards in Lambdas Deck (5)
Loading flashcards...
1

What are Lambda Expressions?

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

2

What are the parts of a Lambda Expression?

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

3

Where do Lambda Expressions can be implemented?

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

4

What is the scope of a Lambda Expression?

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

5

What does Effectively final means?

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