Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

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

Ads

 
 

Share on Google+Share on Google+

Java Coder
What if the main() method is declared as private?
2 Answer(s)      4 years and 4 months ago
Posted in : Java Beginners

Hi,

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

Thanks

Ads
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.


Ads









Related Tutorials/Questions & Answers: