Back to Top

Monday, 16 January 2012

JAVA : What if we have multiple main methods in the same class?

   No the program fails to compile. The compiler says that the main method is already defined in the class.

2 Responses to “ JAVA : What if we have multiple main methods in the same class? ”

Anonymous said...
17 April 2012 at 00:23

you can over load the main method.....


Naviya Nair said...
24 October 2016 at 15:13

I have read your blog its very attractive and impressive. I like it your blog.

Java Training in Chennai Java Training in Chennai | Core Java Training in Chennai

Online Java Training Java 8 Online Training | Java J2EE Online Training | JavaEE Training Institute in Chennai Java Training Institutes

Java Training Institutes in Chennai Java Training in Chennai


Post a Comment

Popular Posts

Subscribe via Email
Subscribe Java Interview Questions via Email
All Rights Reserved JAVA INTERVIEW QUESTIONS | Privacy Policy | Anijit Sarkar
blog links Web Directory Academics Blogs