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 difference between local variable and global variable?
What is your platform’s default character encoding?
What is native code?
Why is java so important?
What is the purpose of object oriented programming?
Can we store variables in local blocks?
How do you take thread dump in java?
When will we prefer to use set and list in java and why?
Explain the importance of join() method in thread class?
What are the main concepts of oops in java?
Can we increase size of array?
What is the benefit of singleton pattern?
Is void a data type?
What is boolean keyword in java?
Where are variables stored?