Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is a lambda expression?
Think about the syntax.
Write a lambda expression that prints 'Learning Java'.
Remember the structure of a lambda expression.
What is the primary purpose of a lambda expression in Java?
Think about what functional interfaces need for their implementation.
Lambda expressions can take parameters.
Refer back to how we defined lambda expressions.
Create a functional interface that defines a method to return the square of a number, and implement it using a lambda expression.
Look at how you can pass the parameter to compute its square.
Write a lambda expression that filters a list of integers to return only even numbers, using the Stream API.
What method is used to filter data in streams?
4 more questions in this section. Enroll free to practise them all.
Enroll free