Is there is any error if you have multiple main methods in
the same class?
Answer Posted / nisha
The compilation error, if you have multiple main
methods in the same class.
Error like :java.lang.ExceptionInInitializerError
Caused by: java.lang.RuntimeException: Uncompilable source
code - main(java.lang.String[]) is already defined
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What do you mean by order of precedence and associativity?
why using interface interface ?
What is field name?
What is method and methodology?
Explain static nested classes ?
What is an argument java?
define the terminology association.
What do you mean by aggregation?
List some important features of java 10 release?
Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain
Does a class inherit the constructors of its superclass in java programming?
What is a instance variable?
How a string is stored in memory?
How does callback work in java?
What is consumer interface?