0 votes
in JAVA by (6.0k points)
Which of the following is correct about Java 8 lambda expression?

None of the options

Optional type declaration - There is no need to declare the type of a parameter. The compiler can infer the same from the value of the parameter.

Both the options

Optional parenthesis around parameter - There is no need to declare a single parameter in parenthesis. For multiple parameters, parentheses are required.

Related questions

0 votes
asked Oct 20, 2020 in JAVA by sharadyadav1986 (30.4k points)
0 votes
asked Jan 7, 2021 in JAVA by SakshiSharma (30.7k points)
...