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?
Recall the definition in your readings.
Give an example of a predefined functional interface.
Think about what interfaces are found in java.util.function.
True or False: A functional interface can have multiple abstract methods.
Think about the definition of a functional interface.
Which of the following is a functional interface? A) Runnable B) Number C) Random
Recall the interfaces we covered.
Implement a custom functional interface for a comparator, then sort an array using a lambda expression that utilizes your interface.
Think about how to compare two values.
Design a functional interface that can be used for event handling in Java applications. Show its implementation in a button click action.
How do you handle actions in Java GUI?
5 more questions in this section. Enroll free to practise them all.
Enroll free