Which functional interface is often used with method references that return a value?

  1. Runnable
  2. Supplier
  3. Consumer
  4. Predicate
Correct answer Supplier

Explanation

`Supplier` represents a function that returns a value and takes no input, suitable for method references.

Update: Admin added a tag on this question

Topics

By Admin · · 36 views