CSC300: Assignment and Parameters with Primitive Types [14/24] |
Very Important!
Both assignment, and passing a primitive type value as an argument to a method with a primitive type argument, results in copying the data to a new place in memory.
Modifying the data in the new place in memory does not affect the memory where the data was copied from!
|
Note: The assignment at line 13 has not been done yet!
The variable y
in the main program still contains the value it had before f
was called.