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 ceil?
When parseint method can be used?
Does sprintf allocate memory?
Are registers volatile?
What is flush buffer?
Can we return null in java?
What makes a function well defined?
What is int short for?
Which list is sorted in java?
What is numel matlab?
Can we use return in constructor?
What is a void in java?
Differentiate between the constructors and methods in java?
What does this () mean in java?
What is the difference between this() and super() in java?