1 # 2 # sample small-but-valid classfile 3 # 4 5 cafe babe # magic 6 0000 # minor_version 7 002e # major_version 8 0006 # 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 19 0021 # access_flags 20 0003 # this_class 21 0004 # super_class 22 0000 # interfaces_count 23 0000 # fields_count 24 0000 # methods_count 25 26 0001 # attributes_count 27 28 # attribute[0] 29 0005 # name 30 00000004 # length 31 0003 # class 32 0000 # method 33