Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
Define a functional interface and give an example in Java.
Look for interfaces with a single method.
What does a lambda expression allow you to do?
Think of how it simplifies code!
What is a functional interface?
Think about the definition of functional interfaces.
True or False: Lambda expressions can have multiple parameters.
Recall the syntax of lambda expressions.
Create a functional interface to calculate the area of a rectangle and demonstrate its use using a lambda expression.
Consider how parameters are passed to lambda expressions.
Write a method using the Stream API to find the largest number in a list of integers using functional operations.
Remember that `reduce` allows you to aggregate values.
6 more questions in this section. Enroll free to practise them all.
Enroll free