Re: Call by reference in Java?

From: Tony Morris (dibblego_at_optusnet.com.au)
Date: 02/28/04


Date: Sat, 28 Feb 2004 09:08:29 +1000


> The solution is not to try to figure out how to emulate the behavior of C,

I may be jumping the gun, because I didn't read all of the post (it's
Saturday morning after all :)), but C also doesn't pass by reference -
pointers are passed by value. Perhaps you meant C++ ?

Here is my explanation of Java being pass by value:
http://www.xdweb.net/~dibblego/java/faq/answers.html#q21

-- 
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software
(2003 VTR1000F)