Pass-by-Value Please (Cup Size continued) If you haven't read the Cup Size story , this one won't make sense. Or it will make sense, but you'll think its really stupid. Or you won't think it's stupid but you'll find yourself... never mind, just go read it now and then come back. I really care about my cups. I don't want just anybody putting something in my cups. If I have something in a cup, I just want it to stay that way until I decide to change it! So back off! So if a Java variable is a cup, with a value in it, what does it mean to "pass" a variable to a method?
Read full article from JavaRanch Campfire - Pass By Value, Please
No comments:
Post a Comment