"You never pass the object. All objects are stored on the heap. Always."
I was reading "camp fire stories" . The quote was cut from "pass by value" article.
All objects have a reference on the heap (a number).So how are primitive values stored in ram?
I put a primitive value to a method and its not changing the value when its pair changed inside the method.If i put an object into a method the outter object is affected.Why was not primitive affected?
I have read "pass by value" article.I did not understand anything. Author was tring to tell something with cups.But understanding the cups example never means understanding how the primitives work.
One more , is String an object or primitive? [ September 02, 2006: Message edited by: sinasi susam ]
You might also want to search the forum, as this is a very frequently asked question, and there are already a lot of good explanations in the archive.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus