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









Related Tutorials/Questions & Answers:
Can a main method be overloaded?
Can a main method be declared final?
Advertisements
main method
main method
main method
main method
main() method
Main method overloading
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
Why servletcontainer can,t call the Init() method ?
can we inherit static method in java?
Can a method inside a Interface be declared as final?
Can a method inside a Interface be declared as final?
Can we declare a static variable inside a method?
Can we replace main() with static block or with other static methods?
can we write a method in JSP - JSP-Servlet
What is Public static void main
can i estimate estimate execution time for a method without knowing implementation details of a method - Java Interview Questions
public static void main
method
method
pack() vs. setSize() Method in Java
GET and POST Method of HTTP
Main function.. - Java Beginners
method inside the method??
main function
how can create pop() method in this program ,Or how can delete image in it when i press pop button in runtime ??? please help me ...
MAin error
Understanding public static void main function

Ads