• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How Method Local innerclass accesses a final variable

 
Praveen Babu
Ranch Hand
Posts: 138
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this thread.
 
Praveen Babu
Ranch Hand
Posts: 138
  • 0
  • 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