Which method reference can replace the lambda on the first line so the output is the same?

Question:

Which method reference can replace the lambda on the first line so the output is the same?
BiPredicate pred = (a,b) -> a.contains(b);
System.out.println(pred.test("fish", "is"));

A. a::contains(b)

B. a::contains

C. String::contains(b)

D. String::contains

E. The supplied code does not compile.

F. None of the above.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: