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 need to declare main() method as static in Java?

Answer Posted / shadab alam

static keyword specifies that there is no need of instance
to call static method and it's information is contained by
JVM that calls the static method.That's why we declare main
method as static so that it can be called automaticlly.

Is This Answer Correct ?    58 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the java virtual machine (jvm)?

1016


What is the use of flatmap in java 8?

804


How do I enable jvm?

819


Why there are no global variables in java?

906


What is proxy object in java?

1052


What is maven in java?

827


What is data persistence in java?

970


What are orm tools in java?

962


What is a container in java?

842


Can the main method be declared final?

958


What is dto in java?

857


What is the difference between jar and executable jar?

939


Where is singleton design pattern used in java?

870


What is the point of lambda expressions?

951


What is difference between loosely coupled and tightly coupled in java?

809