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 / sreenu karampudi

public static void main(String args[])

When the class get loaded, it will execute the static main
() method. void as it does not return anything.

Is This Answer Correct ?    15 Yes 49 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is variable and its types?

1007


Is it necessary for the port addresses to be unique? Explain with reason.

1014


Why do we need wrapper class?

982


Is main an identifier?

1004


what is function overloading in java?

1288


Why does my function print none?

946


Is java hard to learn?

897


Which programming language is most secure?

985


When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?

997


Name some classes present in java.util.regex package.

1024


When do you call copy constructor?

971


java program with complete 4 oops concepts implemented example

3152


How is garbage collection controlled?

1168


Is java pass by value or pass by reference?

978


What is super constructor?

993