Can we overload main method in Java ?
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers

  Q1. Can we overload main method in Java ?Core Java
Ans. Yes, but the overloaded main methods without single String[] argument doesn't get any special status by the JVM. They are just another methods that needs to be called explicitly.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   main method   overloading   yes-no     Asked in 6 Companies      intermediate        frequent


Related Questions

  Difference between Overloading and Overriding ?
 Any real life example of Overloading and Overridding ?
 What will happen if we call perform(null) ?

public void perform(Object obj) {
System.out.println("Object");
}

public void perform(Integer int) {
System.out.println("Integer");
}
 Does java supports operator overloading ?
 Can we overload abstract methods ?
 How does java identifies which method to be called in method overriding or runtime polymorphism, when both methods share the same name and signature ?
  Can we overload constructors ?
 How is static and dynamic polymorphism achieved in Java ?
 Which of the two - compile time and run time polymorphism - requires signature of the method to be different ?



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: