The @FunctionalInterface annotation is used to indicate that an interface is to be used with ________.
- Annotations
- Generics
- Lambdas
- Threads
The @FunctionalInterface annotation is used to indicate that an interface is intended to be used with lambda expressions. It serves as a marker for functional interfaces, making it clear that they are designed to be used in lambda expressions.
Loading...
Related Quiz
- How does thread priority impact the order in which threads are executed?
- What is the role of the JavaFX Application Thread?
- If multiple case labels match the switch expression, then only the ________ matching case will be executed.
- In a multi-threaded environment, which class (StringBuffer or StringBuilder) would you primarily use and why?
- The operator ______ is invalid in Java.