51,396
社区成员




public void testFile(){
int count=0;
for(int i=0;i<100;i++){
count++;//count = count+1;
}
System.out.println(count);
}
a=a++;分解如下:
temp=a;
a++;
a=temp;
IINC 1 1 //count自增,count=1
ILOAD 1 //加载count到操作数栈,操作数栈为1
ISTORE 1 //把操作数栈的数据存到局部变量表的count里,count=1
count = count++ :
ILOAD 1 //加载count到操作数栈,操作数栈为0
IINC 1 1 //count自增,count=1
ISTORE 1 //把操作数栈的数据存到局部变量表的count里,count=0