Sunday, 15 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.

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

Anonymous said...
16 April 2012 11:53

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


Post a Comment

blog links Web Directory Academics Blogs