File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

class

 
anish reddy
Ranch Hand
Posts: 74
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why outer class cant be declared as static,when we can declare inner class as static. Even though i read in book that outer class cant be declared static, i am unable to understand the exact reason so can any one explain in brief description,

so please can anyone help in this matter.


waiting for yours reply

anish
 
Campbell Ritchie
Sheriff
Pie
Posts: 47278
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Static means that something belongs to the class it is inside, as opposed to individual instances of that class. So a top-leve class doesn't have a surrounding class to belong to, so it can't be static. That help?

And welcome to the Ranch
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic