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 java main method is given as static method?

Answer Posted / saravanan.v

Java is a object oriented language.So even main method also should be written inside a class name main class.So main method should be called WITHOUT CREATING OBJECT for main class.For this purpose, it is declared as static.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a war file?

1084


What is string syntax?

1054


why an outer class cannot be declared as private?

4320


What are the two types of streams offered by java 8?

925


What is finally block?

1057


What is meant by flickering?

1082


java Technical questions asked by JPMC

5084


What is ‘is-a ‘ relationship in java?

1038


What is a platform?

1078


How will you reverse a singly-link list?

1009


why are there separate wait and sleep methods? : Java thread

1026


How do you add an arraylist to an array in java?

982


How do you clear a method in java?

1007


define the terminology association.

1104


Where are global variables stored?

957