Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What are formal parameters and real parameters in java? You'd better give an example! thank you
What are formal parameters and real parameters in java? You'd better give an example! thank you
In fact, real parameters and shape parameters are two different expressions of parameters.

In layman's terms, an argument is to assign values to formal parameters, which, on the contrary, look like variables on the surface.

The example on the first floor is also very clear. Ff(2) calls ff(int.

A) Method, parameter A is assigned as argument 2.