Need what is meant by Top level class. Example Static Inner Class ? How are they top level classes. Main Difference between Top level Class as a result of static modifier and Normal Top Level Class.
Amar Srivastava
Greenhorn
Joined: Jul 25, 2000
Posts: 3
posted
0
well Static inner classes are not top level classes, they are technically speaking called "top-level nested classes" which differentiates them from just plain top-level classes. Top level classes on the other hand are public/default classes that are held in .java files and are not enclosed in any other classes [This message has been edited by Amar Srivastava (edited July 25, 2000).]
ricky gonzalez
Ranch Hand
Joined: Jun 30, 2000
Posts: 167
posted
0
Top level classes are the independent, free classes that can be either public or default. Static inner classes are considered top level because they are really independent from the enclosing class and can be called at anytime separately from its outer classes.