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...

Why do we use public static with the main function in Java?

Answer Posted / ravikiran(aptech mumbai)

public means we are allowing the main method to be accessed
any where in the application.and is declared static because
jvm will look for the static one's once it completes the
loading the class.

Is This Answer Correct ?    11 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does you mean in math?

1089


What is the difference between the boolean & operator and the && operator in java programming?

1050


What does ide stand for?

949


Write an algorithm for quick sort?

1038


What is the purpose of the return statement?

1061


How big is a gigabyte?

1047


Can you inherit a constructor java?

1091


What is a double vs float?

1018


Can I extend singleton class in java?

1111


What is the difference between reader/writer and inputstream/output stream?

1085


Is a class an object?

1010


I want to persist data of objects for later use. What is the best approach to do so?

1066


Can we make main() thread as daemon?

1110


What does serializing data mean?

946


What is the need of transient variables in Java ?

1074