File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Object of 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 » Beginning Java
Bookmark "Object of static class" Watch "Object of static class" New topic

Object of static class

Abhishek Bose

Joined: Dec 14, 2009
Posts: 24

Can we create an object of a static class?

[Edit - formatting]
Matthew Brown

Joined: Apr 06, 2010
Posts: 4342

Yes. But if you've run your code, surely you know that already? Or is something happening that you didn't expect?
I agree. Here's the link:
subject: Object of static class
Similar Threads
Static question
Where do static variables (class variables) live (scope)?
Static example
About getClass() method usage
Synchoronizing a static method