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

yes in every progrm in jave the main is static.because when
the program will start ,thit means runnig then the main is
also one method it was called first that means without
instans creations the main is called.thet is the reason we
are put as main is static method(static is used for without
instance creat u call it).void means it does not reaturn
any value

Is This Answer Correct ?    148 Yes 43 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create a fecelet view?

982


Why enumeration is faster than iterator?

926


Explain how hashmap works?

1058


What is the use of toarray () in java?

1061


What is sorting in java?

984


What is the difference between stream and buffer?

963


Why we use set in java?

994


What is t in parametric equations?

985


What is the difference in between cpp and java? Can u explain in detail?

1086


What do you understand by soft reference?

1033


How do you calculate square roots?

1155


Can we extend immutable class?

976


What is sortedset in java?

1014


What is oops in java?

1012


How do you classify Dialog Box?

1109