main Method
main Method
main method, but JVM only calls the main method which receives string array as arguments.
It also shows we can have two or more static methods with same name, but differences in input parameters.
However, we cannot overload two methods if they differ only by static keyword (number of parameters and types of parameters are the same).
|
Doctor: “I’m sorry but you suffer from a terminal illness and have only ten to live.” Patient: “What do you mean, ten? Ten what? Months? Weeks?!” Doctor: “Nine.” |