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 / suresh

Main method is called by jvm...
jvm is out side the class
so main method must be pulic
then only jvm can access.

No instance of the class is needed to
execute the static method.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is entry in java?

1077


Why are functions called methods in java?

1044


I want to print “hello” even before main is executed. How will you acheive that?

1148


Explain the difference between collection api and stream api in java8?

1022


Are floats faster than doubles?

1143


What are the fileinputstream and fileoutputstream?

1100


Is 9 a prime number?

933


Is oracle java 11 free?

1011


What is high level language in computer?

1066


What is not object oriented programming?

993


What is an 8 bit word?

1098


What are streams in java 8?

1046


What ide should I use for java?

1089


Why is the type for real numbers called double?

1016


What is console based application in java?

1085