The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2000



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.


static class

Posted by Ramesh on November 30, 2000 at 10:06 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


Sponsored Links

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