Read a lot of articles, a little bit of a summary of the most basic form of participation in the argument has a certain understanding, although not deep enough.
1. Basic Concepts
- Formal parameters: All called "formal arguments" are parameters that are used when defining function names and body functions in order to receive the arguments that call the function Shishung.
- Arguments: All called "actual arguments" are arguments that pass a function on the call.
2. Difference
- The formal parameter appears in the function definition and can be used throughout the body of the function, leaving the function unused.
- The argument appears in the keynote function, and when it enters the function, the real parametric is not used .
- The function of formal parameters and arguments is for data transfer. When a function call occurs, the keynote function transmits the value of the argument to the parameter of the modulated function, thus realizing the transfer of the keynote function to the transferred function .
These basic understandings lay the groundwork for learning value passing and reference passing, in order to better learn java.
Formal participation arguments in Java