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 thread scheduler schedule the task?

1007


Explain the hierarchy of java exception classes?

1028


Are variables stored in ram?

965


Explain how to convert any java object into byte array.

932


What do you mean by light weight and heavy weight components?

978


What is role of void keyword in declaring functions?

998


What do you understand by copy constructor in java?

886


Define the term string pool?

963


Can I declare a class as private?

1025


Which is faster set or list in java?

986


Is main a function?

977


Explain importance of finally block in java?

990


How do you do descending order in java?

917


What is append in java?

1101


What is the difference between variable declaration and variable initialization?

987