标签:理解 load mod class 运算 int out bsp span
为了方便理解,我们先看一段代码:
int a = 3;
System.out.println(a); // 3
int b = a++; //运行顺序是先赋值,再自增
System.out.println(a); //a = a+1; 4
System.out.println(b); //b = a; 3
int c = ++a; //运行顺序是先自增,再赋值
System.out.println(a); //a = a+1; 5
System.out.println(c); //c = a+1; 5
//结果输出如下
3
4
3
5
5
标签:理解 load mod class 运算 int out bsp span
原文地址:https://www.cnblogs.com/shunkang0312/p/14422702.html