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 / shekhar chauhan

public static void main()- firstly, public which r used
globly access this method in our whole progam. and static
basically used for that we can used only one main method in
whole program.we can not create object that class. so we
make static main method.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a boolean field?

922


How objects are stored in java?

997


What are facelets templates?

994


What are different types of arrays?

970


What are thread safe functions?

908


What are Normalization Rules? Define Normalization?

994


What is a vararg?

978


What are the types of arrays in java?

1038


What is static class

1060


How many threads does a core java have?

1018


Difference between arraylist and hashset in java?

1085


How many tetrahedral voids are there in bcc?

1031


How the interruptible method gets implemented?

928


How many bytes are there?

960


What are the limitations of procedural programming approach?

1016