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
Explain an algorithm to find depth of a binary tree.
Can we sort hashset in java?
What is the hashcode () and equals () used for?
When will we use them?
what is inner class in java?
Explain the difference between abstract class and interface in java?
How to declare objects of a class ?
What is the default value of the local variables?
Can a class have 2 constructors?
What is java life cycle?
What if I write static public void instead of public static void in java?
Can an interface implement another interface?
What is re-factoring in software?
Can we have a method name same as class name in java?
What are the kinds of polymorphism?