+ 1
[DUPLICATE] What is the args in (String[] args) for in java
4 Answers
+ 2
args is the name for the String array.
When you create variable you give them names.
Ex/
int x;
x is the name (also called identifier) for this int.
+ 2
see my book on my blog
https://abdurrahmaanjanhangeer.wordpress.com/my-new-book-java-a-presentation/
+ 1
it's called command line argument.
which is useful to provide inputs to the Java program when you run the program from command prompt like below.
javac test.java
java test argument
0
Tnx



