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 ankitarajoria4
0 votes
6 views



Related Hot Questions

6 Answers

0 votes
NULL
answered Sep 16, 2015 by kotmus2002
0 votes
NULL
answered Sep 16, 2015 by badhwar.rohit
0 votes
NULL
answered Sep 16, 2015 by r3tt
0 votes
NULL
answered Sep 16, 2015 by akasati02
0 votes
NULL
answered Sep 16, 2015 by deven.bendale
0 votes
NULL
answered Sep 16, 2015 by sujata naik

...