Can main() method be overloaded?

Q

Can main() method be overloaded?

✍: Guest

A

Yes. the main() method is a special method for a program entry. You can overload main() method in any ways. But if you change the signature of the main method, the entry point for the program will be gone.

2013-02-25, 2037👍, 0💬