Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
If I don't provide any arguments on the command line, then what will the value stored in the String array passed into the main() method, empty or NULL?
Home
JAVA
If I don't provide any arguments on the command line, then what will the value stored in the String...
0
votes
asked
Nov 14, 2020
in
JAVA
by
rajeshsharma
If I don't provide any arguments on the command line, then what will the value stored in the String array passed into the main() method, empty or NULL?
#java-null
Java-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Nov 14, 2020
by
rajeshsharma
If I don't provide any arguments on the command line, then what will the value stored in the String array passed into the main() method, empty or NULL?
It is empty, but not null.
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: Where the command line arguments are stored and if you want to read command-line arguments with Perl, how would you do that?
asked
Jul 26, 2023
in
Perl
by
rahuljain1
perlcommand
0
votes
Q: If you create a table but don't create a database then where will the table be stored?
asked
Oct 25, 2020
in
Hive
by
rahuljain1
#hive-database-create
+1
vote
Q: Can we cast an int value into byte variable? what will happen if the value of int is larger than byte?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-variable
Java-questions-answers
0
votes
Q: Is delete, next, main, exit or null keyword in java?
asked
Nov 14, 2020
in
JAVA
by
rajeshsharma
#java-delete
#java-main
Java-questions-answers
0
votes
Q: How are arguments passed in Python? By value or by reference?
asked
Oct 14, 2021
in
Python
by
rajeshsharma
argument-pass
Python-questions-answers
0
votes
Q: How are arguments passed by value or by reference?
asked
Dec 31, 2020
in
Python
by
SakshiSharma
#value-by-reference
Python-questions-answers
0
votes
Q: How are arguments passed - by reference or by value?
asked
Jun 11, 2020
in
Python
by
Robindeniel
#python-arguments-pass
#python-reference-value
Python-questions-answers
0
votes
Q: If you want to empty an array then how would you do that?
asked
Jul 26, 2023
in
Perl
by
rahuljain1
perl
+2
votes
Q: Can we have any other return type than void for main method in Java?
asked
May 31, 2020
in
JAVA
by
SakshiSharma
#java-void-main
#java-method-main
#java-void-method
Java-questions-answers
0
votes
Q: How to check if list is empty in Java 8 using Optional, if not null iterate through the list and print the object?
asked
Aug 4, 2023
in
JAVA
by
DavidAnderson
java8-interview-questions-answers
...