When we pass objects then the values changed in methods should change the state of object(bcoz the address of obj is passed).
According to my knowledge, output would be :
but it is not.
Please somebody explain it.
Thanks a lot.
All i know is that i know nothing.