CLASS File Documentation


Overview

Feature Value
File Extension .class
MIME Type application/java-vm
File Format Type Binary
Developed By Sun Microsystems
Specification Java Virtual Machine (JVM) Specification
Major Version Depends on JDK version
Minor Version Specific to implementation
Magic Number CAFEBABE
Constant Pool Collection of constants that are referenced in the file
Access Flags Indicates the class or interface modifiers
This Class Index to the constant pool that represents this class
Super Class Index to the constant pool for the superclass
Interfaces Count The number of interfaces implemented by this class
Fields Count The number of fields in this class
Methods Count The number of methods in this class
Attributes Additional descriptive information (e.g., Line Number Table, Source File)
Stack Size Maximum size of the stack for this class' methods' execution
Local Variables Total number of local variables used in all methods
Class Methods Information about the methods, including name, descriptor, and attributes
Class Fields Information about the fields, including name, descriptor, and attributes
Class Version Indicates compatibility with different versions of JVMs