Compile a simple class with two ore more fields, e.g. public class SimpleClass { public int a; public int b; } Get the javap's output for the "-v -c" (or "-v -l") set of option. The "field" sections are separated by two empty lines: ...... public int a; descriptor: I flags: ACC_PUBLIC public int b; descriptor: I flags: ACC_PUBLIC public SimpleClass(); ......
|