---
title: "If I do not provide any arguments on the command line, then the String array of Main method will be empty or null?"  
description: "If I do not provide any arguments on the command line, then the String array of Main method will be empty or null?"  
author: "Anonymous User"  
published: 2015-07-20  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/2717/if-i-do-not-provide-any-arguments-on-the-command-line-then-the-string-array-of-main-method-will-be-empty-or-null  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# If I do not provide any arguments on the command line, then the String array of Main method will be empty or null?

It is empty. But not null.

## Answers

### Answer by Anonymous User

It is empty. But not null.


---

Original Source: https://www.mindstick.com/interview/2717/if-i-do-not-provide-any-arguments-on-the-command-line-then-the-string-array-of-main-method-will-be-empty-or-null

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
