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

Показать описание
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 :
other overloaded main method can be executed but we have to call that method explicitly just like normal method call
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Java interview playlist link :