从字节码角度分析java中的i++与++i

 

https://blog.csdn.net/hotchange/article/details/79844565

 

栈:

  本地变量

  xxx

  操作数栈

 

  

 

------------------------------------------------------------------------------------------------------------------------------------------------------

i = 0 

i = i++   

i = 0 

 

------------------------------------------------------------------------------------------------------------------------------------------------------

i = 0 

i = ++i

i = 1

posted @ 2019-06-25 10:01  Alice的小屋  阅读(145)  评论(0编辑  收藏  举报