Parameter:
- A Parameter is a variable in a method definition.
Arguments:
- When a method is called, the arguments are the data you pass into the method's parameter.
Let's a Simple Example,
In the above example, MyMethod is a method name and myParameter is a parameter with String datatype which is passed.
myArgument is an argument which has the String value/data "101Programmer".
I think you understand the basic differences between Arguments & Parameter.
0 Comments