Different behaviour of java bytecode

前端 未结 6 1273
面向向阳花
面向向阳花 2020-12-30 03:17

I am a newbee in Java Bytecode. I was understanding the bytecode through some examples but I got stuck in an example.
These are my java and bytecode file



        
6条回答
  •  感动是毒
    2020-12-30 03:39

    The instructions iconst_* are optimised to work with small and specific numbers while bipush (push a byte onto the stack as an integer value) works for bigger numbers.

提交回复
热议问题