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 / shekhar chauhan

public static void main()- firstly, public which r used
globly access this method in our whole progam. and static
basically used for that we can used only one main method in
whole program.we can not create object that class. so we
make static main method.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which number is denoted by leading zero in java?

1237


What is an empty list in java?

958


If goto and const is reserve words than why it is not work in java?

1968


What is methodological framework?

1035


Why parsing is done?

975


Why is java called java?

1040


What are singleton services?

883


What is numel matlab?

1327


What is pangram in java?

1003


Give us a program to check for parenthesis matching using stack.

991


How to optimize the javac output?

1007


Does string is thread-safe in java?

1077


how to prepare for IT Officers Interview in Banks

1960


What is meant by main method?

1053


Can a private method of a superclass be declared within a subclass?

1030