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

How many types of parsers are there?

1019


Explain the concept of proper inheritance?

1068


What are the steps in the jdbc connection?

1025


Is nullpointerexception checked or unchecked?

1033


What is the purpose of using the java bean?

1052


What is regex java?

1109


what methods would you overwrite in java.lang.object class?

1004


What is super in java?

998


What does replaceall do in java?

916


What is the difference between a local variable and an instance variable?

1109


What is the static block?

1069


How do you add an element to a set in java?

1038


What are new features introduced with java 8 ?

995


How are destructors defined in java?

1033


Explain the importance of finally over return statement?

1046