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 阅读(276) 评论(0) 编辑 收藏 举报