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 |
Is java a utf 8 string?
Is 0 a real number?
When can you say a graph to be a tree?
Explain about the main() method in java?
What are the steps to do connection pooling in weblogic?
all are saying java doesn't support multiple inheritance but by default Object class is super class for all the user defined classes and we can extend atmost one class so each class can extend more than one class so java supports multiple inheritance?i am confused with this,pls any one explain me.
Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.
What is string and example?
What is string example?
What is the life cycle of Thread ?
12 Answers HCL, Varnar Softech,
What is the file extension for java?
What collections you have worked on? Internal working of Hashmap?