Technically you're just naming a variable there.
We usually name the variable args
(which is short for "command line arguments"), but you could name it any other legal identifier (for example, String[] elephants
, but that would be silly!).
So yes, your program will still work if you name the variable arg
instead of args
, but it's better to follow standard convention and make it plural.