What if the main() method is declared as private? Ans. The program compiles properly but at runtime it will give 'main() method not public.' message. - Study24x7
Social learning Network
16 Nov 2023 11:28 AM study24x7 study24x7

What if the main() method is declared as private? Ans. The program compiles properly but at runtime it will give "main() method not public." message.

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