| |
|
Which of the following is the correct lambda expression, which adds two numbers and returns their sum? Question Posted on 31 Dec 2020 Home >> Java >> Java8 Innards >> Which of the following is the correct lambda expression, which adds two numbers and returns their sum? |
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 | |
|
|
|
|