java 传值还是引用 refer Java is always pass-by-value. Unfortunately, they decided to call the location of an object a “reference”. When we pass the value of an object, we are passing the reference to it.