Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we have try without catch block?

1075


What does the three dot emoji mean?

1116


What is the difference between import java.util.date and java .util?

1052


How use .contains in java?

1170


Explain the use of sublass in a java program?

1023


Is string a class in java?

977


Explain the selection sort algorithm and state its time complexity?

1013


What is scope & storage allocation of static, local and register variables? Explain with an example.

1010


What is the super void?

899


Does the order of public and static declaration matter in main method?

1070


Can we have more than one package statement in the source file?

1052


How to print an arraylist in java?

1073


How does hashmap work in java ?

1045


What is a void method java?

953


What is void keyword?

1097