0
What does "String[] args)" in a Java Code mean?
Java
7 Answers
+ 6
String[] args is the conventional part of the signature of the main function.
When you run a Java program, the main function is executed. If you run the program from the terminal (command line), you can add some parameters that the program can work with. These parameters are captured in the array of String, which is in the signature, and you could process them inside the program.
On Sololearn you cannot really test this, because we cannot provide runtime arguments.
+ 1
Thanks
0
Ouch
0
Can you explain it to me?
0
I must somehow missed it
0
I can already do math and comments in java. So i studied.
0
đ« đ