Is there is any error if you have multiple main methods in
the same class?
Answer Posted / pranab dutta
No the program fails to compile, if you have multiple main
methods in the same class. The compiler says that the main
method is already defined in the class.
| Is This Answer Correct ? | 18 Yes | 8 No |
Post New Answer View All Answers
What does provide mean construction?
Why are pointers not secure?
Is math an abstract class in java?
What is r * in math?
What is functional interface in java?
Is .net better than java?
What is string [] args?
What is boolean in java?
What do you mean by multithreaded program?
What is quick sort in java?
What is arguments in java?
What is the difference between form & report?
What are the restriction imposed on a static method or a static block of code?
What is a java list?
Can we use string in switch case in java?