The Difference Bettwen Parameters and Arguments in Java

Note:

Parameters refers to the list of variables in a method declaration. 

Arguments are the actual values that are passed in when the method is invoked.

When you invoke a method, the arguments used must match the declaration's parameters in type and order.

reference from: https://docs.oracle.com/javase/tutorial/java/javaOO/arguments.html

原文地址:https://www.cnblogs.com/yangwu-183/p/13457134.html