Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners When will you define a method as static?

Have Programming Question? Ask it here!
 
 
 


Java Coder
When will you define a method as static?
1 Answer(s)      a year and 4 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,



Related Tutorials/Questions & Answers:
Advertisements
 

 

 

DMCA.com