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.
subject: local inner class parameters
regd local inner class (method level)
method-local inner class object cannot use the local variables
Method Local inner class
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014