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 param.oncemore
0 votes
2 views



Related Hot Questions

6 Answers

0 votes
NULL
answered Sep 16, 2015 by ankitarajoria4
0 votes
NULL
answered Sep 16, 2015 by thiru
0 votes
NULL
answered Sep 16, 2015 by tejas lakhani
0 votes
NULL
answered Sep 16, 2015 by manju bhargava
0 votes
NULL
answered Sep 16, 2015 by abhimca2006
0 votes
NULL
answered Sep 16, 2015 by akasati02

...