Free since 2005 · No login required
AT

Academic Tutorials

Learn at your own pace

site-mobile-top-banner · 320x50

What if the main method is declared as private?

The program compiles properly but at runtime it will give "Main method not public." message.