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

Can I create any Marker Interface? If yes then how can I use it???

4 Answers  


What are the differences between heap and stack memory?

0 Answers  


Can static method access instance variables ?

0 Answers  


What is assembly condition codes?

0 Answers  


What is jvm? Why is java called the platform independent programming language?

0 Answers  






What are the Static and Dynamic Variables? Differentiate them.

0 Answers   CGI,


What are exception handling keywords in java?

0 Answers  


What is meant by vector class, dictionary class, hash table class, and property class?

0 Answers  


What are serialization and deserialization?

0 Answers  


I dont want to use serialzable in java is there any another concept so plz tell me

3 Answers   WDC,


what is singleton in java?

0 Answers   IBS,


what are Checked & Unchecked exceptions ?

2 Answers  


Categories