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



Home Answers Viewqa Java-Beginners What happen when we write static public void instead of public static void?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Java Coder
What happen when we write static public void instead of public static void?
2 Answer(s)      a year and 7 months ago
Posted in : Java Beginners


Hi,

What happen when we write static public void instead of public static void?

Thanks


Advertisement
View Answers

April 9, 2013 at 2:42 PM


Hi,

The program will compile first then run properly. For more details visit the reference site: http://www.roseindia.net/java/gettingstartedwithjava/public-static-void-main.shtml



April 10, 2013 at 2:56 PM


Hi , There is no order to declare the modifiers. Hence there is no differnet to declare the method by public static void or static public void.



Related Tutorials/Questions & Answers:
Advertisements
 

 

 

DMCA.com