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 0009 "Signature" # 0005: utf8["Signature"] 18 01 0001 "a" # 0006: utf8["a"] 19 01 0001 "I" # 0007: utf8["I"] 20 01 0004 "LYo;" # 0008: utf8["Yo"] 21 22 0021 # access_flags 23 0003 # this_class 24 0004 # super_class 25 0000 # interfaces_count 26 27 0001 # fields_count 28 29 # fields[0] 30 0001 # access_flags 31 0006 # "a" 32 0007 # "I" 33 0001 # attributes_count 34 # attributes[0] 35 0005 # name 36 00000002 # length 37 0008 # signature 38 39 0000 # methods_count 40 0000 # attributes_count 41