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
Author

Inner classes

Lalit Kapoor
Greenhorn

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.


42
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Inner classes