Is there is any error if you have multiple main methods in
the same class?
Answer Posted / bindhu
The compilation error " main(lava.lang.String[]) is
already defined " will occur when we use have multiple main
methods in the same class?
| Is This Answer Correct ? | 12 Yes | 2 No |
Post New Answer View All Answers
What is the difference between an if statement and a switch statement?
What is treeset in java?
What is return data type?
What is the difference between multitasking and multithreading in Java
Explain garbage collection in java?
Are maps ordered java?
What do you mean by chromounits in java8?
What ide should I use for java?
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?
In a container there are 5 components. I want to display all the component names, how will you do that?
Explain the term virtual machine?
What is an accessor?
If we don’t want some of the fields not to serialize how to do that?
Describe the Big-O Notation.
Can a class have 2 constructors?