DEVFYI - Developer Resource - FYI

Can main() method be overloaded?

Java Interview Questions and Answers (part 3)


(Continued from previous question...)

388. Can main() method be overloaded?

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.

(Continued on next question...)

Other Interview Questions