A

Admin • 802.91K Points
Coach

Q. In which scenario can method references replace a lambda?

  • (A) When the lambda body contains multiple statements
  • (B) When lambda only invokes a method
  • (C) When lambda throws exceptions
  • (D) When lambda accesses outer variables

Explanation by: Admin
Method references can replace lambdas that invoke a method directly.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.