Arguments in Java are the actual values that are passed to variables defined in the method header when the method is called from another method.
That is whenever any particular method is called during the execution of the program, there are some values that are passed to call that method ** These values are called arguments**.
The type of argument values passed must be matched with the type specified for the corresponding parameter in the definition of method Sometimes arguments are also called actual parameters in Java.
example:
int x = add(5, 7);
int y = sum(35, 47);
Top comments (0)