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 / pranab dutta

No the program fails to compile, if you have multiple main
methods in the same class. The compiler says that the main
method is already defined in the class.

Is This Answer Correct ?    18 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does provide mean construction?

1156


Why are pointers not secure?

1077


Is math an abstract class in java?

1077


What is r * in math?

1041


What is functional interface in java?

1095


Is .net better than java?

1074


What is string [] args?

1062


What is boolean in java?

1029


What do you mean by multithreaded program?

1066


What is quick sort in java?

1073


What is arguments in java?

1058


What is the difference between form & report?

1090


What are the restriction imposed on a static method or a static block of code?

1102


What is a java list?

1160


Can we use string in switch case in java?

1135