Adam Michalik wrote:Yes, a reference takes always the same amount of memory.
Yes I totally agree, thanks once again for all the information.Ernest Friedman-Hill wrote: It's a simpler rule to remember, once you understand it correctly.
Rob Prime wrote:
However, both references still point to the same object on the heap. If you change that object both references will see those changes.