Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is a lambda expression?
Think about the syntax and purpose of lambda expressions.
Define a functional interface.
Recall the main characteristic of a functional interface.
What is a lambda expression primarily used for in Java?
Consider what happens when you use a lambda expression.
True or False: A functional interface can contain multiple abstract methods.
Recall the definition of functional interfaces.
Create a functional interface with a method that calculates the area of a rectangle and implement it using a lambda expression.
Remember to define both the interface and the lambda implementation.
Explain the role of 'final' and 'effectively final' in lambda expressions with an example.
Consider how variable scope works in lambda expressions.
5 more questions in this section. Enroll free to practise them all.
Enroll free