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 / s. devanand

In Java, we call any method and variable without creating an
object of the class. Hence we declare main method as static
without creating an object we call the main method.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can optional be null?

1042


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

876


What is the difference between a jdk and a jvm?

952


What's the difference between code-based security and role-based security? Which one is better? : java security

984


What are java’s rules regarding tabs, spaces and newline characters?

1510


What is setstring method in java?

1028


when i send the request to the JSP page it will print as it is and why? and how to solve this problem please inform me that solution

1917


What do you understand by numeric promotion?

1075


How does jpa repository work?

999


What is the use of entity class in java?

976


What is java web application?

931


What is the purpose of jdk?

1001


What is ehcache in java?

1023


Is it better to learn java or python?

995


Is lambda cheaper than ec2?

972