Java高频经典面试题(第一季)一:自增的分析
package will01;
public class testZiZeng {
public static void main(String[] args) {
int i = 1;
i = i ++;
int j = i++;
int k = i + ++i * i++;
System.out.println("i= "+i); //打印结果: 4
System.out.println("j= "+j); //打印结果: 1
System.out.println("k= "+k); //打印结果: 11
}
}


posted on 2019-09-26 11:25 William_Dai 阅读(281) 评论(0) 收藏 举报
浙公网安备 33010602011771号