---
title: "What if I do not provide the String array as the argument to the method?"  
description: "What if I do not provide the String array as the argument to the method?"  
author: "Anonymous User"  
published: 2015-07-20  
updated: 2020-09-19  
canonical: https://www.mindstick.com/interview/2716/what-if-i-do-not-provide-the-string-array-as-the-argument-to-the-method  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# What if I do not provide the String array as the argument to the method?

Program compiles but throws a runtime error "NoSuchMethodError".

## Answers

### Answer by Anonymous User

Program compiles but throws a runtime error "NoSuchMethodError".


---

Original Source: https://www.mindstick.com/interview/2716/what-if-i-do-not-provide-the-string-array-as-the-argument-to-the-method

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
