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



Home Answers Viewqa Java-Beginners Should a main method be compulsorily declared in all java classes?

Have Programming Question? Ask it here!
 
 
 


Java Coder
Should a main method be compulsorily declared in all java classes?
1 Answer(s)      a year and 4 months ago
Posted in : Java Beginners


hi,

Should a main method be compulsorily declared in all java classes?

thanks


Advertisement
View Answers

April 10, 2013 at 6:26 PM


Hi,

There is no need of main method be compulsorily declared in all java classes. Where as the main method we should be defined only if the source class is a java application.

For more related to main method should be compulsorily declared in all java classes

Thanks,



Related Tutorials/Questions & Answers:
Advertisements
Advertisements
 

 

 

DMCA.com