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...

Is there is any error if you have multiple main methods in
the same class?

Answer Posted / srikanth

No, there is no error if we have multiple main methods
in the same class.
because, while compiling we only specify one main method
name so, the JVM compiles it by taking the main method which
is specified by us while compiling.

Is This Answer Correct ?    3 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a boolean be null java?

964


What is a loop java?

1049


What is difference between array and arraylist in java?

985


What is arraylist e in java?

1048


Explain about the select method with an example?

1170


What are predicates in java 8?

1010


What is a void method?

918


What is loop in java?

976


Does java list allow null?

979


Why are lists ordered in java?

1009


What is use of arraylist in java?

1170


How would you format a date in java? I.e. In the ddmmyyy format?

1371


What is == and === in javascript?

1047


Why map is used in java?

1024


What does null mean in java?

1059