This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How Method Local innerclass accesses a final variable

 
Praveen Babu
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends

I want to know how a method local inner class accesses a final variable. I learnt that Method Local inner classes doesnt accesses the local variables of the method they are in because the stack frame is lost once out of scope. So is there something with final variables that overcomes this ?

Thanks,
Praveen
 
wise owen
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this thread.
 
Praveen Babu
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for the reply. I got what i wanted and my doubt is cleared now. Thanks again

Bye & Regards,

PRAVEEN
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic