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 are the different types of java?

1112


Can we define static methods inside interface?

1033


What is java used for on a computer?

1038


How large is a boolean?

1064


What is difference between static variable and global variable?

1120


What restrictions are placed on method overriding in java programming?

1057


What is a numeric literal?

1144


Differentiate between == and equals().

1098


What is the public method modifier?

1070


Is java a security risk?

1093


how we can make a write-only class in java?

1082


What is final keyword in java?

1073


Which sort is best in java?

1031


I don’t want my class to be inherited by any other class. What should I do?

1059


Why does java does not support multiple inheritance? Explain

1040