Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What is a lambda expression?
Think of it as a shortcut for writing a function.
Provide a simple example of a lambda expression.
Consider what this lambda does without parameters.
What is a lambda expression?
Remember how it differs from regular named functions.
True or False: A functional interface can have multiple abstract methods.
Think about the definition of a functional interface.
Create a custom functional interface named 'StringProcessor' that processes a string and returns its length using a lambda expression.
What function processes and gives an output based on a string?
Write a program that filters out all strings starting with the letter 'A' from a list of strings using lambda expressions.
Consider how you can identify and remove items based on a condition.
7 more questions in this section. Enroll free to practise them all.
Enroll free