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 the current version of java?

976


Can a top level class be private or protected?

997


Write a java program to print fibonacci series?

908


Can we override the private methods?

939


What is the difference between a method and a procedure?

998


How is Object Oriented Programming different from Procedure Oriented Programming?

988


What is a class variable?

983


Define iterator and methods in iterator?

914


Why does java have different data types for integers and floating-point values?

949


What is java Applet?

1034


How do you create an array in java?

939


Which containers use a flowlayout as their default layout in java programming?

939


How do you use compareto?

887


What is a flag and how does it work?

937


What is a string token?

957