Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

what's "staic class"?  RSS feed

 
suma sindu
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can some body please tell what a "static class" is.

I know "static method" is a method which can be accessed without creating an instance of the class that has that static method, but I don't understand what this static class is.


thanks
Suma
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
google helped me
 
Steven Bell
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only things I could think of that could be called a 'static class' would be a static variable, or the Class of an object.

example:


P.S. oh ya, forgot about inner classes being static.
[ May 20, 2005: Message edited by: Steven Bell ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!