Skip to content

Java Class file structure

pencilcheck edited this page Apr 26, 2012 · 1 revision

Java class file structure

Java class files contains the java class representation in bytecode, it has lots of fields but there are only a few you should care about.

  1. The first thing is accessFlags, this defines the visibility of a class to other classes.

  2. Constant Pool is a pool of constants appear in the class such as String, Class name, function call name, method refs, field refs, etc that are used for references.

http://en.wikipedia.org/wiki/Java_class_file

http://docs.oracle.com/javase/specs/jvms/se5.0/html/ClassFile.doc.html