hi,
Should a main method be compulsorily declared in all java classes?
thanks
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,