-
Bipush vs sipush
Anyone know what's the difference between BIPUSH and SIPUSH when it comes to Opcodes?
From Opcodes Class:
Code:
public static final int BIPUSH = 16;
public static final int SIPUSH = 17;
Don't tell me 16 and 17, I see that. I want to know what each is used for.
Thanks
-
BIPUSH pushes a signed byte onto the stack. SIPUSH pushes a signed short onto the stack.
A simple search through the JVM specification would've told you that.
-
For future reference, try Java bytecode instruction listings - Wikipedia, the free encyclopedia
It doesn't take long to get a general idea of what each instruction does.