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 a method in programming?

1121


How can you make a class serializable in java?

940


What is the purpose of lambda expressions?

996


Explain creating threads by extending thread class ?

1008


What is parsing in java?

899


Can we assign integer value to char in java?

959


What is difference between call by value and call by reference?

933


What are multiple inheritances?

1049


Why map is used in java?

980


Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..

2236


What is generic type?

976


Does list allow duplicates in java?

880


How can you make sure that your singleton class will always return single instance in multi-threaded environment?

960


Is constructor inherited?

912


What are different data structures in java?

964