can you use the two main method in same class?how?
Answer Posted / shreedream
yes
in java language support the method Overloading, so we can
use the two main method in same class but it should have
different parameter list?
| Is This Answer Correct ? | 45 Yes | 2 No |
Post New Answer View All Answers
Can we have try without catch block?
What does the three dot emoji mean?
What is the difference between import java.util.date and java .util?
How use .contains in java?
Explain the use of sublass in a java program?
Is string a class in java?
Explain the selection sort algorithm and state its time complexity?
What is scope & storage allocation of static, local and register variables? Explain with an example.
What is the super void?
Does the order of public and static declaration matter in main method?
Can we have more than one package statement in the source file?
How to print an arraylist in java?
How does hashmap work in java ?
What is a void method java?
What is void keyword?