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 / harathi

We can have multiple main methods with different
arguments.Compiler throws an error if we have a method
similar to public static void main(String args[])

Is This Answer Correct ?    21 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a literal coding?

1024


What are the difference between composition and inheritance in java?

1027


Is a string literal?

1096


Which is the best approach for creating thread ?

1216


Can we have multiple classes in single file ?

1066


What is method in research paper?

1136


What are the two environment variables that must be set in order to run any java programs?

965


How do you declare an array in java?

1056


What restrictions are placed on method overloading in java programming?

1051


What is numel matlab?

1337


What are the advantages of java?

987


What is meant by structural programming?

1019


What is an example of a keyword?

1105


How do I start learning java?

1065


What is skeleton and stub? What is the purpose of those?

1127