aspose file tools
The moose likes Java in General and the fly likes Inner classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Inner classes" Watch "Inner classes" New topic

Inner classes

Lalit Kapoor

Joined: Jun 06, 2004
Posts: 20
A non-inner class cannot cantain static variables. Why?
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
you'd better rephrase that, because a non-inner class (i.e. any class that's not an inner class) can have static members to its heart's content.

It is sorta covered in the JavaRanch Style Guide.
subject: Inner classes