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

what is purpose of writting public static void main(Strind
arg[]) in java..?

Answer Posted / sahithi

Main method is entry point of our program.It is the method
executed when we run java program.

The method is "public" becozit should be accesible to jvm
to begin execution of program.

It is "static" becoz it should be available for execution
without an object instance..

String args[] are used to signify that user may pass
parameters to java prgm in commandline

Is This Answer Correct ?    19 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is e in java?

917


What is private public protected in java?

1001


What is the set interface in java programming?

1155


What is lastindexof in java?

1041


Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?

964


What is the size of string?

1031


What is double parsedouble in java?

974


What is the use of a copy constructor?

962


Which class is used by server applications to obtain a port and listen for client requests?

922


What is the default size of arraylist in java?

1039


How will you communicate between two applets?

1102


Why main function is static?

1159


List some oops concepts in java?

992


Which package is always imported by default?

1053


What are thread groups?

951