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 purpose of static methods and variables?

989


what is predefined function in java?

938


Differentiate between static and non-static methods in java.

999


Which class contains a method: cloneable or object?

995


What is an exception? difference between Checked and Unchecked exception in Java

957


Why set do not allow duplicates in java?

1006


Is string a datatype?

930


Why is it called a string?

944


What is array in java?

945


Give me example of derived data types.

1088


What is the basic concepts of OOPS?

1131


What is the synonym of framework?

943


What is the largest long allowed by java?

1007


What is the use of isempty in java?

965


What is jdbc api?

962