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 / ravikiran(aptech mumbai)

public means we are allowing the main method to be accessed
any where in the application.and is declared static because
jvm will look for the static one's once it completes the
loading the class.

Is This Answer Correct ?    11 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the SimpleTimeZone class?

2327


What is difference between static and abstract class?

1063


How many bytes is string in java?

1324


What is a class component?

1218


What is keyword and identifier?

1184


Can a source file contain more than one class declaration?

1049


What is meant by class and object in java?

1101


Does unicode support all languages?

1084


How do you create a method in java?

1043


What is the collections api in java programming?

1024


What are operators and its types?

1108


How to split a string in java?

1178


Can a method be static?

1012


Realized?

2224


What is lambda programming?

1065