| Which of the following is correct about Java 8 lambda expression?
Choose the correct option from below list
(1)Both the options
(2)Lambda expression throws a compilation error if a variable is assigned a value the second time.
(3)Using lambda expression, you can refer to the final variable or effectively final variable (which is assigned only once).
(4)None of the options
Answer:-(1)Both the options | | |