The syntax for the Lambda expression is:-

parameter -> expression body

Characteristics of the Lambda Expression:-
  • No need to declare the parameter type as the compiler will get the standard by the value of the parameter.
  • For the multiple parameters parenthesis has to be declared, but for the simple parameter, parenthesis need not be declared.
  • If a contains only a single parameter, then there is no need of curly braces.
BY Best Interview Question ON 02 Feb 2020