can you use the two main method in same class?how?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / reddy
yes
it is possible in java by passing different parametes to
the main method
| Is This Answer Correct ? | 9 Yes | 5 No |
Answer / sanjay kalamdhad
yes,we can do it by method overloading concept in .net too but with using different signature.
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / rajasekhar
yes
it is possible by using static inner class concept
| Is This Answer Correct ? | 4 Yes | 2 No |
Does windows 10 need java?
What does s mean in regex?
Integer.parse Int(bf.readLine(System.out.println("enter value for n["+m+"]:"))); can it run under this
What is default specifier ??? Use of default specifier ???
Can we overload the methods by making them static?
explain System.out.println()
Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?
If we don’t want some of the fields not to serialize how to do that?
How do you join strings in java?
how is final different from finally and finalize in java?
What is difference between static method and static variable?
What is passing parameters in java?