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 functional interface?
Think about the definition of functional programming.
Write a simple lambda expression that prints a greeting.
You need to define an action that can be executed.
What is a functional interface?
Think about what defines a functional interface in Java.
True or False: Lambda expressions can be used with any type of interface.
Recall the characteristics of lambda expressions.
Create a functional interface that defines a method to transform a string to uppercase. Implement it with lambda, then use it to process a list of strings.
You'll need to define an interface, a lambda expression, and then use a stream to apply it.
Using the Stream API, write a method that takes a list of integer values and returns a list of doubled values only for those greater than 10.
Make sure you filter before mapping to achieve the desired output.
5 more questions in this section. Enroll free to practise them all.
Enroll free