Reference
Tuesday, 19 April 2011
Can a method local inner class access the local final variables?Why?
Yes. Because the final variables are stored on heap and they live as long as the method local inner class object may live.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment