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

What is integer valueof?

1041


What is double data type?

893


how to split string in java?

1138


What is a null class?

922


What is an example of a boolean?

999


we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.

1984


I want to persist data of objects for later use. What is the best approach to do so?

1000


What is string pooling concept?

995


How many types of array are there?

952


What is nested loop? What is dangling else condition in it?

1021


How does split work in java?

984


State the merge-sort principle and its time complexity.

914


What is the use of math abs in java?

959


What is the purpose of the return statement?

982


How many bytes is string in java?

1146