Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
Only an inner class can be declared as static. The reason is same as in case of using static and non-static methods in a class. If you want your inner classes not to be connected with outer one jsut declare it static. For example, you can marry and then live together ( non-static inner class ) ot just live together without marrying ( static inner class ). Thanx Replies: |
Sponsored Links
|