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 core java called?

920


List the different types of classloaders in java.

923


Which data type is a class in java?

933


Is alive in java?

896


Explain the importance of finalize() method.

916


What do you meant by active and passive objects?

1017


What causes memory leaks in java?

872


What are accessor methods in java?

947


Is java se open source?

970


Explain a few methods of overloading best practices in java?

919


What is structure of java heap? What is perm gen space in heap?

1049


What do you understand by weak reference?

955


Why there are some null interface in java? What does it mean?

1052


Discuss different types of errors that generally occur while programming.

981


Why does java have different data types for integers and floating-point values?

948