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

If system.exit (0); is written at the end of the try block, will the finally block still execute?

1100


What is the tradeoff between using an unordered array versus an ordered array?

1221


Variable of the boolean type is automatically initialized as?

998


Explain about transient variables in java?

1091


What is OOP's Terms with explanation?

1182


How do you convert string to int in java?

1065


What is java object name?

985


What is the purpose of the finalize() method?

1242


What is the purpose of the enableevents() method?

1036


What all access modifiers are allowed for top class ?

1181


What is an 8 bit word?

1044


What is meant by data hiding/encapsulation?

1098


Can you declare a private method as static?

1136


What are 4 pillers of object orinted programming?

999


What is role of void keyword in declaring functions?

1046