+ 2
[java] main method overloding is beneficial for the program by any mean to us.
if java does not run the overloaded main method 1. why we able to overload the main method.
3 ответов
+ 8
main method overloading is possible in Java refer this code you can understand how to use that
https://code.sololearn.com/cQf2q6uFIbSt/?ref=app
+ 1
I don’t think it’s possible. Each program only needs one main method. There’s no reason to overload it and it will confuse the compiler if you try
0
Ariela that's why I ask is any use of this concept.