Saturday, 19 March 2016

Can I have multiple main methods in the same class ?


No, The program fails to compile.
The compiler says that the main method is already defined in the class.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.