| Home / Java / Q: What if the main method is declared as private? |
Q: What if the main method is declared as private? |
||||
A: The program compiles properly but at runtime it will give "Main method not public." message.
|
||||
Powered by
KBPublisher (Knowledge base software)
