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 do you print array in java?

978


Why string is not a wrapper class?

1172


What are three types of loops in java?

1125


How to split a string in java?

1118


When will we prefer to use set and list in java and why?

954


How will you reverse a link list without using recursion?

1029


What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?

1120


Why is static used?

1019


For class CFoo { }; what default methods will the compiler generate for you>?

1065


What is a nested structure?

1026


Why spring singleton is not thread safe?

990


Why should we use singleton pattern instead of static class?

923


What do you understand by abstract classes?

1062


Explain serialization and deserialization in java?

995


What is meant by class loader? How many types are there? When will we use them?

959