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 are abstract classes and anonymous classes?

1130


What is nextint java?

1128


How many bytes is 255 characters?

1034


How to convert string to char and vice versa?

1048


What is abstract class constructor called?

1074


What is the use of flag?

1135


How hashmap works in java?

1088


How does linkedlist work in java?

989


What are the features in java?

1120


What is an class?

1090


How do you call a reference in java?

1035


What is a static class in java?

1056


What is difference between core java and java ee?

945


What are the 7 types of characters?

1129


Which package is used for pattern matching with regular expressions?

1154