i know method signature use parameter, and method use arguments when method call.
so i don't know why java main method parameter name 'args' is not 'param'
I am sorry that I am not good at English.
i know method signature use parameter, and method use arguments when method call.
so i don't know why java main method parameter name 'args' is not 'param'
I am sorry that I am not good at English.
Just a variable name, you can use any name that meets the Java variable naming requirements
You can use any name for that, but "args" is short for "arguments". Some people prefer "parameter", some "argument". See also: "Parameter" vs "Argument"
It's not a matter of choice, it's about the meaning of the words: an argument is not a parameter
main(String args)
args
is the method argument
main(null)
null
is the parameter by which the method is invoked