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

Which class is the superclass of all classes?

1111


Does list maintain insertion order java?

928


Can we define private and protected modifiers for the members in interfaces?

1110


Can you instantiate the math class in Java?

1099


What is the purpose of default constructor?

1004


What does split function do in java?

1027


What is the default size of arraylist in java?

1134


Write a method to check if input string is palindrome?

1024


What is the purpose of the file class in java programming?

1031


What is identifier in java?

1120


What is the importance of static variable?

1123


What is the exact difference in between Unicast and Multicast object? Where will it be used?

1067


Is an object null?

982


Can long be null in java?

1028


What is method reference in java?

1152