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 functional interface?
Think about how they relate to lambda expressions.
Name one predefined functional interface in Java.
Consider interfaces used in multitasking or GUI programming.
What is a functional interface?
Remember the definition of a functional interface.
True or False: Runnables can return a value.
Think of the method signature of Runnable.
Implement a custom Comparator for sorting integers in descending order and demonstrate its usage with a list of integers.
How do you reverse the natural order?
Write a small program using both Runnable and Callable, demonstrating the differences in their functionality.
What does each method return or do when executed?
6 more questions in this section. Enroll free to practise them all.
Enroll free