This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 4343

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