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

What is the use of static keyword in "public static void
main()"

Answer Posted / rozer willis

static keyword makes the main function static.And the
advantage to make it static is that it can call other
static methods of the sane class just by their names i.e.no
need to create object.And the static method cant be
override so it prevent the main method from onerriding.

Is This Answer Correct ?    34 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how we can make a read-only class in java?

949


Can you achieve runtime polymorphism by data members?

1091


What is the static keyword?

1047


Can we serialize singleton class?

992


What is general methodology?

994


What is the purpose of a volatile variable?

990


What is the default value of an object reference declared as an instance variable?

1067


What's the default access specifier for variables and methods of a class?

1070


Is there any difference between nested classes and inner classes?

1047


What is tree in java?

866


Is stringwriter thread safe?

949


Write a program in java to find the maximum and minimum value node from a circular linked list.

1025


What is java regex?

956


How to convert string to char and vice versa?

969


Can constructor be inherited?

996