1.

Which of the following is the correct lambda expression, which adds two numbers and returns their sum?

Answer»

Which of the following is the correct LAMBDA EXPRESSION, which adds two numbers and RETURNS their sum?
Choose the correct option from below list
(1)(int a, int b) -> a + b;
(2)Both the options
(3)None of the options
(4)(a, b) -> a + b

Answer:-(2)Both the options



Discussion

No Comment Found