The ________ parameter allows Lambda expressions to be passed around as if it was a type.

  • Consumer
  • Functional
  • Predicate
  • Target
The term you're looking for is "Functional." In Java, Lambda expressions can be assigned to functional interfaces, which act as a type for lambda expressions. These interfaces typically define a single abstract method that the lambda expression implements. This allows lambda expressions to be treated as if they were a type, and they can be passed as parameters to methods, returned from methods, or stored in variables.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *