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 use substring in java?

1126


What is number data type?

1023


Is array a class?

924


What checkbox method allows you to tell if a checkbox is checked?

999


Give any two differences between C++ and java.

1135


Is 64bit faster than 32 bit?

1065


How to declare objects of a class ?

1065


Explain different types of thread priorities ?

1069


What is string args [] in java?

1028


What is a method vs function?

1033


Why is multiple inheritance not supported in java?

1023


What is array length in java?

957


How do you replace a string in java?

1001


what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent

2169


Can a method be static?

963