0

Can we overload the main() method in java ?

If possible , explain how it is possible with a simple code and also explain the mechanism of the code.

19th Aug 2018, 2:03 PM
Indu Devarashetty
Indu Devarashetty - avatar
5 ответов
+ 7
Yes you can. But you'll need to call the overloaded main method from the actual main method. https://stackoverflow.com/questions/3759315/can-we-overload-the-main-method-in-java
19th Aug 2018, 2:51 PM
Harsh
Harsh - avatar
0
https://code.sololearn.com/c5k502J25l3p/?ref=app
20th Aug 2018, 2:46 AM
Indu Devarashetty
Indu Devarashetty - avatar
0
Is this main method overloading ? But output is showing many errors
20th Aug 2018, 2:47 AM
Indu Devarashetty
Indu Devarashetty - avatar
0
please reply anyone
20th Aug 2018, 1:16 PM
Indu Devarashetty
Indu Devarashetty - avatar
0
No main method is not overload
1st Sep 2018, 7:14 PM
sohit vashishtha
sohit vashishtha - avatar