What if the main() method is declared as private?

What if the main() method is declared as private?

Hi,

What if the main() method is declared as private?

Thanks

View Answers

April 9, 2013 at 1:27 PM

Hi,

I have found some reference site for java programming coding for Main() method is declared as private.

Visit this link may help you for getting examples with syntax related to main() method declared as privation.

Thanks,


April 10, 2013 at 2:58 PM

Hi, it shoud compile but it show some run time exception.









Related Tutorials/Questions & Answers:

Ads