main function scope

can we overload main() method?

In C++ No…it is forbidden to overload “main” method in c++…LINK!!!

But in java it can be done…LINK…but the 1 with the string array will be called by the JVM…!!!

hope this helps…:slight_smile:

//