Lambda expressions are used primarily to define the implementation of ________ interfaces.
- Abstract
- Functional
- Interface
- Marker
Lambda expressions in Java are primarily used to define the implementation of functional interfaces. A functional interface is an interface that has only one abstract method. Lambda expressions provide a concise way to implement the single abstract method of such interfaces.
Loading...
Related Quiz
- The keyword ________ is used to apply restrictions on class, method, and variable.
- Which method can be used to temporarily pause the execution of a thread for a specified time?
- The ________ method of ExecutorService attempts to stop all actively executing tasks and halts the processing of waiting tasks.
- If a and b are boolean expressions, then a & b is true only if ______.
- The ______ interface in Java represents the result of an asynchronous computation.