Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Object of static class

 
Abhishek Bose
Greenhorn
Posts: 24
Android Chrome Java
  • 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: 4567
8
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic