1 # 2 # sample small-but-valid classfile 3 # 4 5 cafe babe # magic 6 0000 # minor_version 7 002e # major_version 8 0008 # 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 000c "InnerClasses" # 0005: utf8["InnerClasses"] 18 01 0005 "Zorch" # 0006: utf8["Zorch"] 19 07 0006 # 0007: class[Zorch] 20 21 0021 # access_flags 22 0003 # this_class 23 0004 # super_class 24 0000 # interfaces_count 25 0000 # fields_count 26 0000 # methods_count 27 28 0001 # attributes_count 29 30 # attribute[0] 31 0005 # name 32 00000022 # length 33 0004 # number_of_classes 34 0003 0000 0000 0001 # Small / null / null / public 35 0003 0000 0001 0002 # Small / null / "Small" / private 36 0003 0007 0000 0004 # Small / Zorch / null / protected 37 0007 0003 0006 ffff # Zorch / Small / "Zorch" / all-bits 38