The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2000

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:

Its just matter of relation

Posted by Kishori Sharan on December 01, 2000 at 10:24 AM

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
Kishori



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us