JAVA BYTECODE STRUCTURE

Contents


A Little Big Example


ClassFile

SourceFile Attribute

Examples


Constant Pool

CONSTANT_Integer & CONSTANT_Float

CONSTANT_Long & CONSTANT_Double

CONSTANT_Utf8

CONSTANT_String

CONSTANT_Class

CONSTANT_NameAndType

CONSTNAT_Fieldref, CONSTANT_Methodref, & CONSTANT_InterfaceMethodref

Examples


Fields

ConstantValue Attribute

Example


Methods

Exceptions Attribute

Example


Code Attribute

LineNumberTable Attribute

LocalVariableTable Attribute

Examples


Instructions

Examples


New Attributes

InnerClasses & Synthetic Attributes

Deprecated Attribute