Can a method reference refer to a method with parameters?

  1. No
  2. Yes, if compatible with the functional interface
  3. Only static methods
  4. Only constructors
Correct answer Yes, if compatible with the functional interface

Explanation

A method reference can refer to a method with parameters as long as it matches the functional interface signature.

Update: Admin added a tag on this question

Topics

By Admin · · 27 views