+ 1
inner class and local variable
why inner classes in java can't access to non-final local variables?
1 Respuesta
+ 5
Inner class in java cannot acess local variables of the method in which the local inner class because
local variables of the method is the local variables of the method are kept on the stack
and lost as soon as the method ends