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

Give some features of interface?

1017


What is arrays aslist in java?

920


What are synchronized methods and synchronized statements in java programming?

969


Why deletion in linkedlist is fast than arraylist?

1023


What is a nullable field?

987


What is unmodifiable list in java?

901


How to set the permissions to a file in java?

939


Where are variables stored?

917


What are the different types of inner classes?

967


What are the benefits of operations?

894


Define the term string pool?

954


What Is Composition?

1000


Is Java a dying language?

1036


How many types of methods are there?

972


How can we pass argument to a function by reference instead of pass by value?

1044