It's not a secret anymore!
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
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: 4541

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
It's not a secret anymore!