+ 1

Why we take String args[]

Why we can not take. Into args[]

26th Nov 2019, 3:03 AM
Rameshwar Shivshette
Rameshwar Shivshette - avatar
3 Antworten
+ 6
Because the command line arguments to a program can be represented as an array of strings.
26th Nov 2019, 3:59 AM
Sonic
Sonic - avatar
+ 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.
26th Nov 2019, 3:07 AM
HAS|B
HAS|B - avatar
0
Please tag 'Java main-method arguments' instead of 'tam' 👍
26th Nov 2019, 5:39 AM
Ipang