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 / kanchan bangar

becoz in java programs execution is starts from main method
and static method is for the first preference
method.ppublic is for the global scope to all over the
progarms..............

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a line break?

1025


Difference between final and effectively final ? Why is effectively final even required ?

981


What must a class do to implement an interface in java programming?

1048


What is the purpose of interface?

996


What is string array?

1059


Is java a super set of javascript?

1096


Is hashmap thread safe?

977


What are different types of multitasking?

951


Are true and false keywords?

1022


What is core java called?

967


What is bifunction in java?

1184


What are the advantages and disadvantages of reference counting in garbage collection?

1018


What is a null check?

989


Is vector thread safe in java?

1043


Which method returns the length of a string?

1025