Can a main method be overloaded?

Can a main method be overloaded?

Hi,

Can a main method be overloaded?

thanks,

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









Related Tutorials/Questions & Answers:
Can a main method be overloaded?
Can a main method be declared final?
Advertisements
main method
main method
main() method
Is main method compulsory in Java?
java sleep in main method
java sleep in main method
What is the arguement of main method?
Why is the main method declared static?
When is java main method called?
What is the return type of the main method?
What if the main() method is declared as private?
What is the first argument of the String array in main() method?
Till Slip Program Error Free - No Main Method
Till Slip Program Error Free - No Main Method
Till Slip Program Error Free - No Main Method
Till Slip Program Error Free - No Main Method
Till Slip Program Error Free - No Main Method
Till Slip Program Error Free - No Main Method
Accessing non-static members through the main method in Java.
Should a main method be compulsorily declared in all java classes?
Why we should use string args[] in main method in java?
Can I have multiple main() methods in the same class?
how to open one Jframe from main method call
JAVA what is different between static block and public static void main(String a[]) method
How can print integer in method
can we inherit static method in java?
Why servletcontainer can,t call the Init() method ?
Can a method inside a Interface be declared as final?
Can a method inside a Interface be declared as final?

Ads