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
How many types of methods are there in java?
Difference between concurrent hashmap and hashtable and collections
Tell me are there implementations for sorting and searching in the java libarary?
What is a singleton class? Give a practical example of its usage.
What do you mean by platform independence of Java?
Similarity and difference between static block and static method ?
what is a working thread? : Java thread
What is core java called?
What is the differences between c++ and java? Explain
Is java hashset ordered?
What is flag in python?
What is difference between static class and normal class?
What is character in data type?
What is java util?
design an lru cache in java?