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

Why we cannot override static method?

988


How are variables stored?

923


What are the rules for naming an array?

990


What is the generic class?

904


Is null function in java?

975


What is an array in java?

1126


Explain the reason behind ending a program with a system.exit(0)?

1039


What is unicode in java?

886


Tell me about different OOPS concepts.

955


what is singleton class in java?

994


Is java a compiler?

919


Who developed java?

936


What are the limitations of procedural programming approach?

998


How do you add an element to a hashset in java?

940


Enlist diffrent types of inheritance supported by java?

858