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

Why is multiple inheritance not supported in java?

962


What are alternatives to java serialization?

1052


What are the types of methods in java?

1035


what r advatages of websphere? & how to deploy?

2103


What is the use of bufferedreader?

950


What is math in java?

1022


Difference between collection, collection and collections in java?

954


What are implicit objects in java?

934


When can an object reference be cast to an interface reference in java programming?

955


What is the difference between an if statement and a switch statement?

1099


What is oop in java?

957


Define a package.

1009


What is lossy conversion in java?

1116


What is the intersection and union methods?

978


How do you convert boolean to boolean?

1069