+ 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 Answers
+ 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.