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

How to implement an arraylist in java?

1040


Is java free for businesses?

1005


Can list be null in java?

986


How many types of keywords are there?

937


Give reasons supporting that string is immutable.

890


What is unicode datatype?

919


What is boolean flag in java?

1034


Explain the scope or life time of class variables or static variables?

926


Describe the Big-O Notation.

996


What is difference between string and new string?

971


What is boolean strategy?

1080


What is the abstraction?

968


Explain the private field modifier?

1025


Can we use different return types for methods when overridden?

942


In Java list the methods that can be overridden?

949