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

What is savepoint in java?

807


Explain working of java virtual machine (jvm)?

954


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

855


Which method is used to create the daemon thread?

908


Define network programming?

1000


How do I enable java in google chrome?

970


What is the difference between a while statement and a do statement?

894


Are streams faster than for loops?

861


Explain suspend() method under thread class>

979


What is dialect in java?

847


What is type inference? Is type inference available in older versions like java 7 and before 7 or it is available only in java se 8?

866


what are the different phases in delivering the project during development and maintenance?

4576


how can we create the ui using netbeans,having the code?

2020


What is a cookie in java?

892


Explain different way of using thread?

956