Java Coder
Should a main method be compulsorily declared in all java classes?
1 Answer(s)      2 years 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,