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 the functionability stubs and skeletons?
What is anagram word?
Explain a situation where finally block will not be executed?
What is hash code collision?
How are observer and observable used in java programming?
How will you initialize an Applet?
Is 9 a prime number?
What is style and indentation?
What does || mean in vectors?
Can a class be private?
Explain the difference between abstract classes and interfaces in java?
What does it mean that a method or field is “static”?
How use .contains in java?
What are namespaces in java?
What is the difference between Error, defect,fault, failure and mistake?