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...

Why do we use public static with the main function in Java?

Answer Posted / sai

public is used so that it can be called easily from outside
the scope of function.Static is used so that it can be
easily called without using its object.

Is This Answer Correct ?    37 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which graphs are functions?

963


What is the private method modifier?

1085


What is member in java?

1008


Can we clone singleton object in java?

1010


What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?

1130


Why does java have two ways to create child threads? Which way is better?

1038


What is nested loop? What is dangling else condition in it?

1067


What is the maximum size of array in java?

976


Define an abstract class with reference to java.

990


Can you explain inner class.

1072


What are some alternatives to inheritance?

1089


What is data type example?

956


Write a code to create a trigger to call a stored procedure

970


Does apple use java?

940


What is variable length arguments in java?

965