can you use the two main method in same class?how?

Answers were Sorted based on User's Feedback



can you use the two main method in same class?how?..

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

can you use the two main method in same class?how?..

Answer / reddy

yes
it is possible in java by passing different parametes to
the main method

Is This Answer Correct ?    9 Yes 5 No

can you use the two main method in same class?how?..

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

can you use the two main method in same class?how?..

Answer / rajasekhar

yes

it is possible by using static inner class concept

Is This Answer Correct ?    4 Yes 2 No

Post New Answer

More Core Java Interview Questions

Is java a utf 8 string?

0 Answers  


Is 0 a real number?

0 Answers  


When can you say a graph to be a tree?

0 Answers   Amazon,


Explain about the main() method in java?

0 Answers  


What are the steps to do connection pooling in weblogic?

1 Answers   TCS,


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.

4 Answers  


Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.

0 Answers  


What is string and example?

0 Answers  


What is string example?

0 Answers  


What is the life cycle of Thread ?

12 Answers   HCL, Varnar Softech,


What is the file extension for java?

0 Answers  


What collections you have worked on? Internal working of Hashmap?

1 Answers   Bravura Solutions,


Categories