int aはobj.memberの値をコピーしているのでa=1となります。
obj.memberの値が書き換えられていますが、a=1は変更されないので、aを表示すると1と表示されます。
Answers
Were you able to resolve your confusion?
Users viewing this question
are also looking at these questions 😉
Recommended
0からのJava学習
51
0
C言語攻略 第1章 C言語の基礎
25
0