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

Search Interview Questions


 3361 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

   



Java - Interview Questions and Answers

  Q1. Can we overload main method in Java ?Core Java
Admin
info@buggybread.com
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 ?
  Can we overload constructors ?
 How is static and dynamic polymorphism achieved in Java ?
 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");
}
 Any real life example of Overloading and Overridding ?
 Does java supports operator overloading ?
 Can we overload abstract methods ?
 Which of the two - compile time and run time polymorphism - requires signature of the method to be different ?
 How does java identifies which method to be called in method overriding or runtime polymorphism, when both methods share the same name and signature ?



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: