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

Can a function return a function?

1100


can rmi and corba based applications interact ?

1126


What are facelets templates?

1086


Why do we use variables?

1048


What java is used for?

1122


State some advantages of java?

1288


What does arrays sort do in java?

1084


How objects of a class are created if no constructor is defined in the class?

1127


What is the difference between Array and Hash Table?

1084


Where pragma is used?

1099


What is a method header?

1079


write a program that list all permutations of ABCDEF in which A appears before B?

2524


How do you control extraneous variables?

971


What is java algorithm?

990


Why is flag used in java?

1139