View Single Post
Old 05-05-2004, 01:20 PM   #13 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,166
Belisarius is on a distinguished road
Val, you're correct both times. Because the method passes a copy to the reference, as opposed to the reference itself, you cannot reassign the reference. Hence, setting the input to a new object won't affect the object outside the method.

sde, why not just return null instead of false, and check to see if the object returned is null?
__________________
GitS
Belisarius is offline   Reply With Quote