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 are green threads in java?

1006


What is the purpose of a volatile variable?

1067


What is a java object and java application?

1058


What is singleton class and how can we make a class singleton?

1101


What do you mean by boolean?

1064


What is a dynamic array in java?

1186


Is a boolean variable?

1016


What defines function?

982


What is isa relationship?

1060


Explain about procedural programming language or structured programming language and its features?

1100


What is the difference between procedural and object-oriented programs?

974


What are the advantages of autoboxing?

1020


What are the restrictions imposed by a Security Manager on Applets?.

2614


What carriage return means?

965


When is an object subject to garbage collection?

1075