0
in java every processing occurs inside main method. what happens if we exclude (String[] args) and make it as ()??can declare main() method like normal methods for other purposes. if so would overloading be taken place?
5 Respuestas
+ 2
string args[] is for comandline argument.. its must !!
0
it's the overloading of main method u can do that ,but u hv to make a main method with arguments of String[] no matter what
0
it's the blue print of the main method. You cannot avoid it. You can change the name args to something else but you cannot remove the whole thing. There has to be a String[] args
0
thank u all
0
if you exclude (String[] args) from main method then the public static void main() will be treated as normal method and no overloading is applicable for public static void main(String[] arsg) method.