Overloading of the main method
is possible but JVM will always call String argument
main method only.
The other overloaded method
we have to call explicitly then it will be executed
just like a normal method call.
1. Inheritance concept
applicable for the main method. Hence while executing
child class if child class doesn’t contain main
method then parent class main method will be executed.
It seems overriding concept
applicable for main method but it is not overriding
it is method hiding.
For main method inheritance
and overloading concepts are applicable but overriding
concept is not applicable instead of overriding method
hiding concept is applicable.