+ 1
Why we take String args[]
Why we can not take. Into args[]
3 Antworten
+ 6
Because the command line arguments to a program can be represented as an array of strings.
+ 4
String args[] is an array where whatever you code in main method are stored there in the string args[] array.
it is same as the declaration of the arrays inside a method, but in there it's a constructor.
all properties of main methods stored in that array.
0
Please tag 'Java main-method arguments' instead of 'tam' 👍