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:

re

Posted by Rajiv on May 23, 2001 at 3:45 PM

> Can any one tell me what is a static class
> how to write it and why do u need a static class
> i had written a class like this
> public static class stTest
> {
> }
> but it is not compiling and giving the following error

> The type type B can't be declared static. It is already top-level, since it is a member of a package.

> thanx & regards
> Ramesh






Replies:

Sponsored Links



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