When will you define a method as static?

Hi,

When will you define a method as static?

thanks,

View Answers

April 11, 2013 at 4:09 PM

Hi,

In Java Programming language we have two types of methods, these are instance methods and static methods. A static method can be accessed without creating an instance of the class.

For more details http://www.roseindia.net/java/beginners/howtoaccessstaticmethod.shtml

Thanks,









Related Tutorials/Questions & Answers:
Advertisements