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...

Need to use public,static keywords in main function?

Answer Posted / anjani kumar jha

public is used because from anywhere u r able to call ur
main method

static-static is the entry point of main function which is
executing by jvm(at run time) in other word signature of
the main function.

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the final access modifier in java?

1122


Explain about assignment statement?

1071


What are the difference between string, string builder, and string buffer in java?

1174


What does the “final” keyword mean in front of a variable? A method? A class?

1040


Can a class with private constructor be extended?

1004


Can we override the private methods?

1064


What are the advantages of defining packages in java?

1042


What is meant by method overriding?

1172


Can we define private and protected modifiers for the members in interfaces?

1158


Which class is the superclass of all classes?

1158


Is alive in java?

1012


What are the advantages and disadvantages of reference counting in garbage collection?

1072


Explain about serializable interface in java?

1051


What are pass by reference and pass by value?

1041


How many static init can you have?

1270