Is there is any error if you have multiple main methods in
the same class?
Answer Posted / harathi
We can have multiple main methods with different
arguments.Compiler throws an error if we have a method
similar to public static void main(String args[])
| Is This Answer Correct ? | 21 Yes | 3 No |
Post New Answer View All Answers
What is a literal coding?
What are the difference between composition and inheritance in java?
Is a string literal?
Which is the best approach for creating thread ?
Can we have multiple classes in single file ?
What is method in research paper?
What are the two environment variables that must be set in order to run any java programs?
How do you declare an array in java?
What restrictions are placed on method overloading in java programming?
What is numel matlab?
What are the advantages of java?
What is meant by structural programming?
What is an example of a keyword?
How do I start learning java?
What is skeleton and stub? What is the purpose of those?