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

How to find the given number is a prime number or not by getting input from the user

1093


How do you sort words in java?

918


Explain all java features with real time examples

1713


How to sort numbers in java without array?

973


State the difference between creating string as new () and literal.

1106


What is a buffer in java?

1024


Explain about main thread in java?

1072


How do listeners work?

1028


What is boolean keyword in java?

1123


What is difference between char array and string?

1106


What is the console in java?

1143


What is the purpose of the runtime class in java programming?

1053


How define set in java?

1065


What is data structure in java?

979


What is functional interface in java?

1040