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

In Java why we write public static void main(String args[])
why not main()?

Answer Posted / ratna

As said by Prabhakant Prabhakar Rasal
if There are two main reasons to write string args[]
1. TO identify the program
2. To get command_line arguments

How does the string args[] helps in identifying the program ????

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of java inner classes?

1020


What does nextint () do in java?

937


How are destructors defined in java?

993


Can you make a constructor final in Java?

1072


What is callablestatement? How you can call stored procedure to pass in parameter?

985


Are maps ordered java?

903


What is the difference between equals() and == in java?

925


Is finalize() similar to a destructor?

984


Which is better 64 bit or 32 bit?

884


What is the difference between inner class and nested class?

1018


Can a abstract class be declared final?

950


What is entry set in java?

1043


What environment variables are required to be set on a machine in order to run Java programs?

1132


What is the maximum size of list in java?

916


What are the advantages of java over cpp?

1025