What is the difference between java bytecode astore_1and astore_2?
astore_1
astore_2
Instructions astore_n, for small values n, are only abbreviated equivalents for astore n. Any version stores what is on top of the stack in a local variable n.
astore_n
n
astore n
astore_1coincides with astore 1and astore_2coincides with astore 2, except that astore_1and astore_2are one byte, whereas astorea double-byte instruction.
astore 1
astore 2
astore