A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
Programmer Certification (SCJP/OCPJP)
Static local inner class
Joined: Jul 04, 2000
Jul 27, 2000 01:22:00
Can I have a static inner class inside a method(local static
Shailendra Bade<BR>Mumbai, India<BR>Mail to:
Joined: Jun 27, 2000
Jul 27, 2000 01:27:00
No. Within a method, the only modifier you can use is final. You cannot use private, protected, public, static, etc inside a method. Hence you cannot declare a local static inner class.
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Static local inner class
Abt Inner Classes....
Outer class instance
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013