Can a main method be overloaded?

Ads

 
 

Share on Google+Share on Google+

Java Coder
Can a main method be overloaded?
1 Answer(s)      4 years and 6 months ago
Posted in : Java Beginners

Hi,

Can a main method be overloaded?

thanks,

Ads
View Answers

April 11, 2013 at 12:07 PM


Hi,

Yes, In Java program we could having multiple number of main() methods with different Signature and implementation in the class.

for more related to http://www.roseindia.net/answers/viewqa/Java-Interview-Questions/11577-Main-method-overloading.html


Ads









Ads

 
Advertisement null

Ads