+ 1

Can we overload the main function?

7th Jan 2017, 8:35 AM
Ankit Pratap Singh
Ankit Pratap Singh - avatar
5 odpowiedzi
0
no.
7th Jan 2017, 8:00 PM
Seckar
Seckar - avatar
0
sorry sir we can overload the main function in java by changing the argument datatype
8th Jan 2017, 2:01 AM
Ankit Pratap Singh
Ankit Pratap Singh - avatar
0
Sorry Ankit pratap Singh this is not possible but if you can then just share the same
10th Jan 2017, 9:24 AM
akash kumar
akash kumar - avatar
0
mr akash we can overload the main function try kar by changing the parameters
10th Jan 2017, 9:28 AM
Ankit Pratap Singh
Ankit Pratap Singh - avatar
0
That doesnt work man, not with a main. The original main will always run at startup even if you cange parameter tipes. Go ahead and test it in practice, dont just talk theory
10th Jan 2017, 9:59 AM
Seckar
Seckar - avatar