舉例:
代碼
public void methond03(){
int I=10;
int j=20;
int k =I+j;
return;
}
反編譯
0 bipush 10
2 istore_1
3 bipush 20
5 istore_2
6 iload_1
7 iload_2
8 iadd
9 istore_3
10 return
執(zhí)行流程
1、一開(kāi)始局部變量表和操作數(shù)棧都是空的

image.png
2、執(zhí)行bipush 10,將10壓入操作數(shù)棧中

image.png
3、執(zhí)行istore_1,表示把棧頂元素存入局表變量表索引1的位置

image.png