java 中的函数参数传递方式

简介

值传递.

但是对于基本数据类型, 传递的是就是数值,
如果不是基本数据类型, 传递的就是对象的地址,也就是将对象的地址拷贝了一份传递过去.

参考链接

https://www.cnblogs.com/sum-41/p/10799555.html

Hope is a good thing,maybe the best of things,and no good thing ever dies.----------- Andy Dufresne
原文地址:https://www.cnblogs.com/eat-too-much/p/14944805.html