tushar bhasme wrote:
I was expecting since j is referencing the same object as that of i, any change in j would reflect in i... but it dsnt...
does it have to do with auto boxing and unboxing or smthing?
Wrapper object are immutable, so you can't change the value once you've created it. What does happen here, it creates a new object and assign it to j.
try this,