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 Java Shutdown Hook?

1127


Can we declare a constructor as final?

1219


In a class implementing an interface, can we change the value of any variable defined in the interface?

1034


What is java used for on a computer?

940


What is the program compilation process?

1039


What is a qms manual?

948


What is a string token?

969


Is there a jre for java 11?

1014


Explain aggregation in java?

928


What is application tier?

1054


Distinguish between a predicate and a function?

944


Is null an object in java?

983


Explain about public and private access specifiers?

981


Which container method is used to cause a container to be laid out and redisplayed in java programming?

1060


how to write a program for sending mails between client and server

2032