+ 1
Why the inner class can use local variables of the method only if they are marked final?
2 Réponses
0
I am not sure where you got that from, but as far as I know, an inner class can access any variables of the outer class...not just those which have the final modifier.
0
Final doesn't modify visibility. Declaring a variable final makes it immutable. Declaring a variable public, private or protected changes its visibility.