Should a main() method be compulsorily declared in all java classes? Ans. No not required. main() method should be defined only if the source class is a java application. - Study24x7
Social learning Network
06 Oct 2023 10:50 AM study24x7 study24x7

Should a main() method be compulsorily declared in all java classes? Ans. No not required. main() method should be defined only if the source class is a java application.

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles