+2 votes
in JAVA by

Which of the following is correct about Java 8 lambda expression?

None of the options

Lambda expression throws a compilation error if a variable is assigned a value the second time.

Using lambda expression, you can refer to the final variable or effectively final variable (which is assigned only once).

Both the options

...