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

hi,

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

thanks

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