I saw java bytecode that need to compare to var, if they equal return true, else .....
if(var1==var2)
return true;
else
{ ...}
on bytecode
aload 1
aload 2
if_acmpne 6
iconst 1
ireturn
I understand iconst1 and ireturn to return true. and understand aload1 and aload2 to load 2 var to stack.
But how if_acmpne 6
works? what is 6?
thank