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 @qualifier in java?

906


What is native class in java?

880


Who developed rxjava?

817


How can c# app request minimum permissions? : java security

782


Java prints out a ton of digits when I system.out.println() a double. How can I format it so it displays only 3 digits after the decimal place?

805


In system.out.println(), what is system, out and println?

953


What is the difference between the boolean & operator and the && operator?

887


What is spliterator in java se 8?

1028


What is meant by java se?

879


What is an interceptor in java?

786


What gives java it’s “write once and run anywhere” nature?

1043


What are tlds in java?

816


What is the java virtual machine (jvm)?

1008


What is jpa entitymanager?

850


I run a web server. Am I at risk? : java security

838