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 is difference between c++ and java ?

1072


What is the point of polymorphism java?

950


What is parse method?

956


What are different access specifiers in java?

946


What are the advantages and disadvantages of object cloning?

1037


How do constructors use this() and super()?

1049


What is an example of a constant variable?

1004


Can a vector contain heterogenous objects?

1003


What is time complexity java?

946


Is there any way to skip finally block of exception even if some exception occurs in the exception block?

999


What is parameter example?

958


What is finalize method?

1038


What is linkedlist in java?

929


Explain about public and private access specifiers?

971


Why main method is called first in java?

942