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 do you mean by an interface in java?

1021


Is null a string?

991


Does hashset allow duplicates in java?

1111


What are "methods" and "fields"?

1010


What do you mean by Function Overloading in java?

1173


What is the difference between abstract classes and interfaces?

1013


When does a class need a virtual destructor?

1006


How many types of voids are there?

971


Is void a type?

972


Which collection is thread safe in java?

984


What is the purpose of a transient variable?

1053


What does singleton class mean?

968


What is assembly used for?

1015


What is the dot operator?

995


What do you understand by access specifiers in Java?

1007