A

Admin • 825.56K Points
Coach

Q. Which of these is a correct lambda expression syntax in Java?

  • (A) (a, b) -> a + b
  • (B) (a, b): a + b
  • (C) (a, b) => a + b
  • (D) lambda a, b: a + b

Explanation by: Admin
Correct syntax: (a, b) -> a + b.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.