I feel or value transfer is more convenient, reference error prone, especially in complex applications, it is difficult to sort out what is the point to the same reference data,
Value transfer, can build variable in a program (mainly structured data, such as object), need not consider common with other variables, although the memory consumption, but as long as it is not a table structure data, for the performance of the computer now basically not much difference, only to consider when dealing with table structure data memory problems
CodePudding user response:
In fact you Java can also ah, always new, don't quote,