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

What is a bubble sort in java?

951


What data type is a string?

1015


What is JFC?

1245


What is a Transient Object?

1085


Who is founder of java?

999


What about interrupt() method of thread class ?

1071


When can we say that threads are not lightweight process in java?

1159


List types of storage classes in java?

1154


What is internal variable?

1015


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

1043


Can an unreferenced object be referenced again?

1193


Do loops java?

1024


What is threaded programming and when is it used? : Java thread

1070


What is the exact difference in between unicast and multicast object? Where we will use?

999


What is r * in math?

1001