Possible Duplicate:
Arguments or parameters?
I got parameter and argument kind of mixed up and did not really pay attention to when to use one and when to use the other.
Can you please tell me?
Possible Duplicate:
Arguments or parameters?
I got parameter and argument kind of mixed up and did not really pay attention to when to use one and when to use the other.
Can you please tell me?
A parameter is the variable which is part of the method’s signature (method declaration). An argument is an expression used when calling the method.
Consider the following code:
Here
i
andf
are the parameters, andanInt
and2.0
are the arguments.