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 / ravi

static because once the class is loaded the main() will be
invoked first.
void because main()is not returning any value.

Is This Answer Correct ?    228 Yes 99 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you sort a string in java?

968


When the constructor of a class is invoked?

1034


What is replacefirst in java?

1114


What is meant by class loader? How many types are there? When will we use them?

973


What is nested interface?

1012


What are internal variables?

1001


Explain oops concepts in detail?

1030


What is the use of 'super' keyword inside a constructor?

976


Why static functions are used?

1101


What is the difference between scrollbar and scrollpane?

1090


What is difference between classpath and path variables in java?

1200


What is difference between variable declaration and definition?

976


What are the basics of core java?

1020


Can java program run without jre?

1015


Can we change the value of static variable?

961