Java
Programming and Technical
Can we access the non-final local variable, inside the local inner class?
Read Solution (Total 3)
-
- NO because local inner class cannot access non-final local variable till JDK 1.7. Since JDK 1.8, it is possible to access the non-final local variable in local inner class.
- 6 years agoHelpfull: Yes(0) No(0)
- No we cannot access the non-final variable,inside the local inner class.
- 6 years agoHelpfull: Yes(0) No(0)
- because static method can be accessed without an object
- 6 years agoHelpfull: Yes(0) No(0)
Java Other Question