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 / deepak divvela

In the main function generally we are using
public static void main(String args[])
that means public is used for call method without being the
member of the class.
and static is used for to call method directly with no need
of the object creation.

Is This Answer Correct ?    3 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is method with example?

1104


What is rmi and steps involved in developing an rmi object?

1059


Explain how hashmap works?

1058


What does a boolean method return?

1225


List out five keywords related to exception handling ?

1009


State the main difference between c++ and java?

1077


What is the use of parse function in java?

974


Explain different types of thread priorities ?

1069


Which class should you use to obtain design information about an object in java programming?

1068


What is the symbol for average?

1025


What is the default size of arraylist in java?

1115


Can java object be locked down for exclusive use by a given thread?

989


How hashmap increases its size in java?

980


What is final variable?

935


What is the exception hierarchy in java?

951