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 |
Why is it called boolean?
what is the difference b/w static and final methods?
Why Java is not pure Object Oriented language?
What does pointer mean?
What are identifiers in java?
What two classes are used to read data only?
0 Answers TryTechnicals Pvt Ltd,
Name few java.lang classes introduced with java 8 ?
Can we use string in switch case in java?
Why can we not override static method?
What is object data type?
Is it possible to specify multiple jndi names when deploying an ejb?
Can we assign null to double in java?