0 votes
11 views

What kind of variable you can access in an lambda expression??

in Education by (49.4k points)

1 Answer

0 votes

What kind of variable you can access in an lambda expression in Java8? in Java8?

Using lambda expression, you can refer to final variable or effectively final variable (which is assigned only once). Lambda expression throws a compilation error, if a variable is assigned a value the second time.

by (49.4k points)

Related questions

0 votes
1 answer 13 views
0 votes
1 answer 24 views
0 votes
1 answer 11 views
11 views asked Nov 8, 2020 in Education by Editorial Staff (49.4k points)
0 votes
1 answer 12 views
0 votes
1 answer 10 views
0 votes
1 answer 14 views
0 votes
1 answer 15 views
0 votes
1 answer 16 views
0 votes
1 answer 17 views
...