Home Help Java S Static
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

Static

Advertisement
Static means one each class, rather than per for each object regardless of how many instance of a class might exist.

Static

     

Static means one each class, rather than per for each object regardless of how many instance of a class might exist. It means that they can be used without creating an instance of a class. Static methods are implicitly final method, since overriding depends on the type of the object, and static methods are attached to a class, rather than attaching to an object. A static method of a subclass can shadow a static method of the superclass, regarding the original method was not declared final. However, a static method can't be overridden by a nonstatic method. Or we can say that a static method can't be converted into an instance method in a subclass.

To read more about static click at: 

http://www.roseindia.net/struts/struts2/strutsresources/static-parameter.shtml

http://www.roseindia.net/java/beginners/howtoaccessstaticmethod.shtml

 

Advertisement

Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: November 17, 2009

Ask Questions?    Discuss: Static  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
DMCA.com