3 ms·
I've never seen actual bugs due to a misunderstanding of the concept though. It seem to be mostly a terminology difference between c++ and Java cultures. It is
by olavk 12y ago
I've never seen actual bugs due to a misunderstanding of the concept though. It seem to be mostly a terminology difference between c++ and Java cultures. It is correct to say that Java passes objects as references, but it is technically wrong to say that Java is pass-by-reference. But since Java has only one way of passing objects, this terminology confusion does not lead to actual problems.
- jjnoakes 12y agoExcept they are different things, and others (me included) have seen bugs related to the confusion. Technical correctness is always best. Java is pass by value, and even variables holding object references are passed by value.