In the standard public static void main(String[] args)
, I have noticed that (at least in Dr. Java), you can use other words besides args
, but I have never seen any code that does deviate from this name.
My questions are
args
just a convention?Thank you for any help! I'm having trouble finding any answers online.
Yes the args variable is just convention. The variable name can be changed, but it is convention and you would be looked down upon. Source here.