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 |
Explain class A{} class B{} class C{} all the three classes are saved in a single file name, what the name should i provide to the file ,in what file name should i run the program? Ple Explain
What is a parameter used for?
what is polymorphism?
What is the main method java?
Can a class be protected in java?
Where are the card layouts used?
What is identifier in java?
perpare on factorypattern,linklist wothout using collection, (multitharding ie create producer/customer therad producer create Queue continuesly,consumer consume queue, consumer wait if queue is full,producer wait if queue is empty),diff betn sleep(1000)&wait(1000) these r the main Q ask in huawei(2008)
How to re-get an object that is collected by garbage collector?
What is sizeof in java?
What is a method signature java?
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls