Method references require the functional interface to match in:

  1. Return type only
  2. Parameter list and return type
  3. Parameter names only
  4. Return type only, parameters optional
Correct answer Parameter list and return type

Explanation

The method signature must match both the parameters and return type of the functional interface method.

Update: Admin added a tag on this question

Topics

By Admin · · 30 views