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 is the driver class?

1037


What is the purpose of finalization in java programming?

1025


Which one will take more memory: an int or integer?

1219


Name component subclasses that support painting in java programming?

1057


How many bits is a float?

994


Why static functions are used?

1090


If I only change the return type, does the method become overloaded?

919


What is Java Annotations?

1090


What is empty list in java?

1066


Explain java heap space and garbage collection?

1057


What is comparable and comparator interface? List their differences

1092


List down the methods and interfaces of collection class in java.

976


What is serial version uid and its importance in java?

1040


Does every java program need a main?

986


What do you mean by local variable and instance variable?

939