• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Object of static class

 
Abhishek Bose
Greenhorn
Posts: 24
Android Chrome Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Can we create an object of a static class?

[Edit - formatting]
 
Matthew Brown
Bartender
Posts: 4549
8
Java Netbeans IDE Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. But if you've run your code, surely you know that already? Or is something happening that you didn't expect?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic