Can an anonymous class have static members?

John Zukowski

With one exception, anonymous classes cannot contain static fields, methods, or classes. The only static thing they can contain are static final constants.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact