Organizational Research By

Surprising Reserch Topic

difference between final and effectively final


difference between final and effectively final  using -'java,lambda,inner-classes,final,java-8'

I'm playing with lambdas in Java 8 and I came across warning local variables referenced from a lambda expression must be final or effectively final. I know that when I use variables inside anonymous class they must be final in outer class, but still - what is the difference between final and effectively final?
    

asked Sep 16, 2015 by rajnipancholi
0 votes
15 views



Related Hot Questions

6 Answers

0 votes
NULL
answered Sep 16, 2015 by suyesh.lokhande
0 votes
NULL
answered Sep 16, 2015 by amit.gupta
0 votes
NULL
answered Sep 16, 2015 by kotmus2002
0 votes
NULL
answered Sep 16, 2015 by patilkiran.101
0 votes
NULL
answered Sep 16, 2015 by mcasudhir
0 votes
NULL
answered Sep 16, 2015 by ashishshukla

...