1 # 2 # sample small-but-valid classfile 3 # 4 5 cafe babe # magic 6 0000 # minor_version 7 002e # major_version 8 0007 # 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 000a "SourceFile" # 0005: utf8["SourceFile"] 18 01 000a "Blort.java" # 0006: utf8["Blort.java"] 19 20 0021 # access_flags 21 0003 # this_class 22 0004 # super_class 23 0000 # interfaces_count 24 0000 # fields_count 25 0000 # methods_count 26 27 0001 # attributes_count 28 29 # attribute[0] 30 0005 # name 31 00000002 # length 32 0006 # "Blort.java" 33