1 # 2 # sample small-but-valid classfile 3 # 4 5 cafe babe # magic 6 0000 # minor_version 7 002e # major_version 8 0009 # constant_pool_count 9 10 # 11 # constant_pool 12 # 13 01 0005 "Small" # 0001: utf8["Small"] 14 01 0010 "java/lang/Object" # 0002: utf8["java/lang/Object"] 15 07 0001 # 0003: class[Small] 16 07 0002 # 0004: class[java/lang/Object] 17 01 000f "EnclosingMethod" # 0005: utf8["EnclosingMethod"] 18 01 0004 "zorp" # 0006: utf8["zorp"] 19 01 0003 "()V" # 0007: utf8["()V"] 20 0c 0006 0007 # 0008: nat[zorp:()V] 21 22 0021 # access_flags 23 0003 # this_class 24 0004 # super_class 25 0000 # interfaces_count 26 0000 # fields_count 27 0000 # methods_count 28 29 0001 # attributes_count 30 31 # attribute[0] 32 0005 # name 33 00000004 # length 34 0003 # class 35 0008 # method 36