+ 1
What are java arguments...m always confused
4 Réponses
+ 3
I am guessing you are talking about arguments used in functions, if yes then they are just values passed to a function that has some parameters defined.
Like say
public void add(a, b){
Int sum=a+b;
System.out.print(sum);
}
add(4,5);
Here 4 and 5 are arguments and a and b are parameters.
+ 1
The values that are passed in the parameters are called as arguments
+ 1
You basically pass arguments and accept parameters.