A

Admin • 828.03K Points
Coach

Q. Can method references replace lambda expressions?

  • (A) No
  • (B) Yes, when the lambda body is just a method call
  • (C) Only for static methods
  • (D) Only in Java 9 and above

Explanation by: Admin
Method references can replace lambdas when the lambda body directly calls a method.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.