Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Help > Why method loca...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 16043 of 16078
Post > Topic >>

Why method local inner class can use final variable rather than....

by QQ <chaojiang.au@[EMAIL PROTECTED] > May 1, 2008 at 05:11 AM

Hi all

Just a quick question.

Why method-local inner class can access final variable defined in
method only?

I know the reason why it can not access instance variable in method.

Just can not figure out why??

any reply would be appreciated.

Steven




 1 Posts in Topic:
Why method local inner class can use final variable rather than.
QQ <chaojiang.au@[EMAI  2008-05-01 05:11:42 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue May 13 23:27:13 CDT 2008.