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

How many types of methods are there in java?

949


Difference between concurrent hashmap and hashtable and collections

1004


Tell me are there implementations for sorting and searching in the java libarary?

977


What is a singleton class? Give a practical example of its usage.

1042


What do you mean by platform independence of Java?

1066


Similarity and difference between static block and static method ?

871


what is a working thread? : Java thread

994


What is core java called?

920


What is the differences between c++ and java? Explain

996


Is java hashset ordered?

1047


What is flag in python?

991


What is difference between static class and normal class?

1030


What is character in data type?

918


What is java util?

972


design an lru cache in java?

937