Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What does the @FunctionalInterface annotation signify?
Consider its purpose in class definitions.
Name one built-in functional interface provided by Java.
Think of interfaces related to threading or collections.
What is the main characteristic of a functional interface?
Reflect on what differentiates functional interfaces from regular interfaces.
True or False: A functional interface can contain static methods.
Consider the flexibility given to functional interfaces.
Design and implement a functional interface named StringProcessor that takes a string and returns its length. Then, create a lambda expression to implement this interface.
Focus on the functional interface structure and how to define inputs.
Create a list of strings, define a predicate functional interface to filter out strings longer than 3 characters, and print the results.
Remember how predicates work with filtering streams.
4 more questions in this section. Enroll free to practise them all.
Enroll free