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 return used for in java?

1010


What is constructor chaining and how is it achieved in java?

1129


What is a key in java?

967


How to implement an arraylist in java?

1135


Should you use singleton pattern?

923


What is the difference between checked exception and unchecked exception?

1005


java Technical questions asked by JPMC

5060


placement papaers of spring computing technology

1391


What is unicode in java?

919


Can java list contain duplicates?

995


What is stored procedure. How do you create stored procedure ?

1933


What is exception hierarchy in java?

995


What is the numeric promotion?

1004


What is the difference between dom and sax parser in java?

958


Is nullpointerexception checked or unchecked?

1015