can we overload main method in java? | Core java Interview Questions and Answers

preview_player
Показать описание
yes we can overload main method in java but JVM will always look for main method with String[] argument
other overloaded main method can be executed but we have to call that method explicitly just like normal method call

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Java interview playlist link :
Рекомендации по теме
join shbcf.ru