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.