+2 votes
in JAVA by (6.0k points)
Which of the following is the correct lambda expression, which adds two numbers and returns their sum?

None of the options

(int a, int b) -> a + b;

Both the options

(a, b) -> a + b

Related questions

0 votes
asked Oct 31, 2019 in Other by MBarbieri (1.0k points)
+2 votes
asked May 13, 2021 in JAVA by rajeshsharma (23.1k points)
...