
Securing Your Java Code • Chapter 7 273
Table 7.2 Disassembling Instructions for the testCalc() Method
Index Instruction Hex
0 iconst_2 05
1 istore_0 3B
2 iconst_2 05
3 istore_1 3C
4 iload_0 1A
5 iload_1 1B
6 iadd 60
7 istore_2 3D
8 iload_2 1C
9 ireturn AC
Now let’s bring up the hex editor. Load in the file Tiny.class and you
should see a bunch of hexadecimal numbers on the left side, and some
strings on the right side (Figure 7.5). If you look carefully on the right
you should even see the string “2 + 2 =” which was part of our main()
method (not shown in Figure 7.5).The code for the method testCalc()
will be visible on the left side, and the hex binary numbers ...