+ 7

Why would I need to overload the "main" method?

In what ways would overloaded "main" methods be relevant?

20th Sep 2017, 8:21 PM
David Akhihiero
David Akhihiero - avatar
1 ответ
+ 8
You could call your overloaded main from your program, but the JVM won't care about it. The JVM always looks for the specific main method public static void main (String[] args) ... So I think it's not really useful to overload main.
21st Sep 2017, 4:26 PM
Tashi N
Tashi N - avatar