Can method references refer to overloaded methods?

  1. Yes, if the context determines the correct method
  2. No, overloading is not supported
  3. Only if methods differ in return type
  4. Only for static methods
Correct answer Yes, if the context determines the correct method

Explanation

Overloaded methods can be referenced if the functional interface signature resolves to the correct method.

Update: Admin added a tag on this question

Topics

By Admin · · 29 views