20161103问题解析请点击今日问题下方的“【Java每日一题】20161104”查看(问题解析在公众号首发,公众号ID:weknow619)
package Nov2016;
public class Ques1104 {
private String num;
public void setNum(String num){
num = num; // 1
this.num = num; // 2
}
public String getNum(){
return num;
}
}
今日问题:
注释1和2两处的作用是否一样?(点击以下“【Java每日一题】20161104”查看20161103问题解析)