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...

Why do we use public static with the main function in Java?

Answer Posted / manya

main function is used for two purposes:-1)when you have to
write a recursion code.2)to use command line arguments

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to override the main method?

981


What does n mean in java?

972


What modifiers are allowed for methods in an interface?

1164


What is this keyword in java?

1033


What is difference between wait and notify in java?

1143


Explain jdk, jre and jvm?

976


What are the limitations of procedural programming approach?

1055


Can I learn java without any programming experience?

1041


What are different types of classloaders?

1020


Can I uninstall java?

1055


What is sorting in java?

990


What are the basic concepts of OOPS in java?

1036


List some features of the abstract class.

1069


When is update method called?

1143


What does arrays sort do in java?

1020