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 the basic syntax of a lambda expression?
Think about the format: (parameters) -> code.
Give an example of a functional interface in Java.
Think of something that can be executed.
What does a lambda expression in Java do?
Consider what you use lambda expressions for.
True or False: A Lambda expression can have multiple abstract methods.
Remember the definition of a functional interface.
Write a lambda expression that takes a list of integers and returns a list of their squares.
Think about how to transform each element in the stream.
Create a functional interface and implement it using a lambda expression.
Define the interface with one method, and then implement it succinctly.
5 more questions in this section. Enroll free to practise them all.
Enroll free