There is practice question from the
Test Bank?
Q. 40 Why can’t
String::charAt be used as a method reference?
The correct answer is : Method references can pass either the instance of the parameter from the lambda but not both.
However, I can use the String::charAt to implement a BiFunction as below?
Can anyone help to verify the answer?