Home > DeveloperSection > Interviews > Can we access the non-final local variable, inside the local inner class?

Posted on    April-27-2015 1:00 AM

 Java Java  Nested  Class 
Ratings:
 1 Answer(s)
  348  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Points:4035
Posted on    April-27-2015 1:00 AM

No, local variable must be constant if you want to access it in local inner class.

Don't want to miss updates? Please click the below button!

Follow MindStick