posted 22 years ago
Your code examples are correct, and I understand what you mean, but your terminology is a little off.
There is no such thing as a "static inner-class".
There are nested classes - that's just any class that's defined inside another class or interface.
An inner class is a special type of nested class - it requires an instance of its enclosing class to exist for it to exist.
A static nested class is just that- it's a top level class that's defined inside another class, and you must use the name of the enclosing class to reference it outside of the enclosing class, but since it's top level (static), you don't need to create an instance of the enclosing class.
So...remember, it's either an inner class, or a static nested class. No such thing as "static inner class".
Rob