JVM
int a = 1;
a = a++;
System.out.println(a); //输出1
a = a++与a = ++a均为先计算后赋值,不同的是:
a = a++中变量先压栈,后计算,最后栈顶元素弹出赋值于a;
a = ++a中变量先计算,后压栈,最后栈顶元素弹出赋值于a.(https://blog.csdn.net/Cactus_Lrg/article/details/82050439)
(https://blog.csdn.net/LovePluto/article/details/81062176 )