For each field declared in the type, the following information must be stored in the method area. In addition to the information for each field, the order in which the fields are declared by the class or interface must also be recorded. Hereís the list for fields:
对于类型中声明的每一个字段,方法区中必须保存下面的信息。除此之外,这些字段在类或者接口中的声明顺序也必须保存。下面是字段信息的清单:
- The field's name
- 字段名
- The field's type
- 字段的类型
- The field's modifiers (some subset of public, private, protected, static, final, volatile, transient)
- 字段的修饰符(public,private,protected,static,final,volatile,transient的某个子集)。