---
title: "What if the static modifier is removed from the signature of the main method?"  
description: "What if the static modifier is removed from the signature of the main method?"  
author: "Samuel Fernandes"  
published: 2015-03-27  
updated: 2020-09-20  
canonical: https://www.mindstick.com/interview/2366/what-if-the-static-modifier-is-removed-from-the-signature-of-the-main-method  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# What if the static modifier is removed from the signature of the main method?

Program compiles. But at runtime throws an error **"NoSuchMethodError".**

## Answers

### Answer by Anonymous User

Program compiles. But at runtime throws an error **"NoSuchMethodError".**


---

Original Source: https://www.mindstick.com/interview/2366/what-if-the-static-modifier-is-removed-from-the-signature-of-the-main-method

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
