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 |
what are the jsp tags with example?
What is string literal in java?
Does a function need a return?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
What is thread?
What is the base class of all exception classes?
Why char array is preferred over string for storing password?
How do I type unicode?
What is string pool?
Explain all java features with real time examples
What is deserialization?
What is the latest version of java?