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 java abstraction with example?
What is the difference between throw and throws keywords?
What is executor memory?
Is there any limitation of using inheritance?
what is collatration?
How many classes can any class inherit java?
Wha is the output from system.out.println(“hello”+null); ?
What is the core java?
Can you override a final method?
Why string is called as immutable?
What are reference variables in java?
When parseint method can be used?
What is string manipulation?
How can an object be unreferenced?
What is java used for on a computer?