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 for a simple greeter method.
Remember it should have a single abstract method.
Write a short lambda expression that prints 'Hello World!'
Think of the basic structure of a lambda.
What is a functional interface?
Remember the definition from our lessons.
True or False: Lambda expressions can have multiple statements?
Review the syntax of lambda expressions we discussed.
Design a simple functional interface for a multiplier and implement it using a lambda expression that takes two integers and returns their product.
Think about the structure of a functional interface.
Create a list of strings and use a Stream API operation to find and print all strings that contain the letter 'a'.
Use 'filter' to narrow down the strings.
6 more questions in this section. Enroll free to practise them all.
Enroll free