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 / sai

public is used so that it can be called easily from outside
the scope of function.Static is used so that it can be
easily called without using its object.

Is This Answer Correct ?    37 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between access specifiers and access modifiers in java? 16

952


Does hashset allow duplicates in java?

1048


How garbage collection is done in java?

983


What is an infinite loop in java? Explain with an example.

972


What is the difference between stored procedure & function?

923


Explain when noclassdeffounderror will be raised ?

987


Can It is possible to synchronize the constructor of a Java Class?

1028


List some important characteristics on jre

1026


How to perform bubble sort in java?

944


What are wrapper classes in java?

1010


Explain notify() method of object class ?

1030


Compare overloading and overriding?

952


What is difference between adapter class and listener?

962


Why is string buffer better than string ?

1038


How to perform binary search in java?

942