Lambdas Flashcards Preview

Java > Lambdas > Flashcards

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

What are Lambda Expressions?

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


What are the parts of a Lambda Expression?

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


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.


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.


What does Effectively final means?

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