---
title: "Why is the main() method declared static?"  
description: "Why is the main() method declared static?"  
author: "Bhavya Varma"  
published: 2017-12-21  
canonical: https://answers.mindstick.com/qa/31885/why-is-the-main-method-declared-static  
category: "technology"  
tags: ["java programming"]  
reading_time: 1 minute  

---

# Why is the main() method declared static?

Why is the main() [method](https://www.mindstick.com/articles/23411/the-most-effective-method-to-find-the-perfect-small-business-phone-system-for-your-business) declared [static](https://www.mindstick.com/articles/12098/the-static-keyword-the-static-methods)?

## Answers

### Answer by Hemant Patel

The **main()** method is declared **static** because it's called by JVM before instantiation of the class. And it's also necessary because it's called by JVM before any objects are made. Due to this, we declare main() method static because they can then be invoked by the runtime engine without having to instantiate an instance of the parent class.

## *Hope it's informative for you...*


---

Original Source: https://answers.mindstick.com/qa/31885/why-is-the-main-method-declared-static

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
