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 meaning of I ++ in java?

1184


What is the purpose of format function?

1181


How do you sort a set in java?

918


What is the use of singleton?

966


Can a class be a super class and a sub-class at the same time? Give example.

1566


When can an object reference be cast to an interface reference in java programming?

1025


what is use of functional interface in java 8?

1022


Why unicode is important?

940


What type of variable is error flag?

1071


explain copyonwritearraylist and when do we use copyonwritearraylist?

951


What is meant by attribute?

1126


What is java virtual machine and how it is considered in context of java’s platform independent feature?

1173


What is string immutability?

1107


What is the difference between serializable and externalizable interfaces?

1100


How many threads can java run?

1115