A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
local inner class parameters
Joined: Sep 26, 2007
Jul 28, 2008 03:35:00
I am not able to understand why a local variable is required to be declared final for a local inner class. Please let me know with an illustration.
Joined: Oct 13, 2005
Jul 28, 2008 04:28:00
More of a beginner's question.
Have a look at
this recent thread
; a search will pick up lots more examples in the Ranch.
Don't get me started about those stupid
subject: local inner class parameters
method-local inner class object cannot use the local variables
regd local inner class (method level)
Method Local inner class
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013