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 of the definition provided in class.
Provide an example of a functional interface.
Recall the example discussed during the session.
What is the defining characteristic of a functional interface?
Remember the definition discussed in class.
True or False: You must always use the @FunctionalInterface annotation with functional interfaces.
Think about the benefits of using it without it being strictly required.
Create a functional interface for a mathematical operation and implement it with a lambda expression to calculate the maximum of two numbers.
Think about the conditional operations.
Explain in your own words the advantages of using functional interfaces and lambda expressions in Java.
Consider how these features simplify the code structure.
4 more questions in this section. Enroll free to practise them all.
Enroll free