Java Coder
When will you define a method as static?
1 Answer(s)      2 years and 3 months ago
Posted in : Java Beginners

Hi,

When will you define a method as static?

thanks,

Advertisement
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,