File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
Method Local inner class
method-local inner class object cannot use the local variables
regd local inner class (method level)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015