in the process of learning Java, there are some problems that you need to use Java disassembly tool javap to view bytecode instructions, but there are some problems when viewing bytecode instructions, assuming the following simple code,
public static void main(String[] args) {
int var = 100;
var = var / 10;
System.out.println(var);
}
the first few instructions of disassembly class, are
bipush 100
istore_1
iload_1
...
Why does the first instruction push the variable into the Operand stack and then store the variable out of the stack in the local variable table instead of directly storing the variable in the local variable table?