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
How many types of parsers are there?
Explain the concept of proper inheritance?
What are the steps in the jdbc connection?
Is nullpointerexception checked or unchecked?
What is the purpose of using the java bean?
What is regex java?
what methods would you overwrite in java.lang.object class?
What is super in java?
What does replaceall do in java?
What is the difference between a local variable and an instance variable?
What is the static block?
How do you add an element to a set in java?
What are new features introduced with java 8 ?
How are destructors defined in java?
Explain the importance of finally over return statement?