File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Static Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Static Class" Watch "Static Class" New topic
Author

Static Class

Siddharth Bhargava
Ranch Hand

Joined: Feb 23, 2007
Posts: 257
Can a class be static ???
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 2169
    
  47
Yes and No. There are a number of different types of class in Java, these can be grouped in to 2 main categories Top Level Classes and Inner Classes.
Inner Classes can be subdivided into 4 types Anonymous, Local, Member and Nested Top Level. Of all these class types only one type can use the static keyword, that is the Nested Top Level class. This basically a Member class declared as static.
 
 
subject: Static Class
 
Similar Threads
outer class
static inner classes
An anonymous class can be static?????
Static class??
static class