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

Does printwriter create a file?

928


Can an interface have a constructor?

916


What are the different types of data structures in java?

952


What is the difference between declaration and definition in java?

1024


What are inner classes or non static nested classes in java?

1141


What is the meaning of course?

1062


How define set in java?

1013


A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.

980


Explain the difference between abstract class and interface in java?

949


Can singleton class be inherited in java?

958


Difference between this() and super() in java ?

1041


Is java 9 released?

963


What is meant by nested loop?

992


is there a separate stack for each thread in java? : Java thread

944


What is main method?

1003