So I have an array full of nodes called “SNodes” (they are a class of my own creation. They are literally just a basic node that holds a single String and a pointer to the next node). I have …
Tag: pass-by-value
Java Heap and Pass By Value
I am a little confused as to how my Java program is allocating memory. Below is a typical situation in my program. I have an object created on the Heap inside of a class which I pass to other functions inside of other classes. My question(s) are about how the memory is used. When A’s list gets passed to B.bar(),