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

What is double data type?

0 Answers  


What is method with example?

0 Answers  


What is the default value of float and double datatype in java?

0 Answers  


What is method and methodology?

0 Answers  


What is HashTable?

4 Answers  






What is string and example?

0 Answers  


Can finally block be used without a catch?

0 Answers  


Which are the two subclasses under exception class?

0 Answers  


What is assembly condition codes?

0 Answers  


Can we inherit a class with private constructor?

0 Answers  


How to create an instance of a class without using "new" operator? Plz help me out properly.Thank u.

10 Answers   CSC,


whst is encapsulation?when u encpsulate actually while devoloping code?

7 Answers   Amdocs, MGL,


Categories