JVM(一):方法区

方法区(Method Area)

在JVM中,类型信息和类静态变量都保存在方法区中,需要注意的一点是,常量池也存放于方法区中。

类型信息包括:

1、类型的全名(The fully qualified name of the type)

2、类型的父类型全名(除非没有父类型,或者父类型是java.lang.Object)(The fully qualified name of the typeís direct superclass)

3、该类型是一个类还是接口(class or an interface)(Whether or not the type is a class )

4、类型的修饰符(public,private,protected,static,final,volatile,transient等)(The typeís modifiers)

5、所有父接口全名的列表(An ordered list of the fully qualified names of any direct superinterfaces)

6、类型的字段信息(Field information)

7、类型的方法信息(Method information)

8、所有静态类变量(非常量)信息(All class (static) variables declared in the type, except constants)

9、一个指向类加载器的引用(A reference to class ClassLoader)

10、一个指向Class类的引用(A reference to class Class)

11、基本类型的常量池(The constant pool for the type)

 

posted @ 2018-03-31 17:30  等风来。。  Views(170)  Comments(0Edit  收藏  举报
------------------------------------------------------------------------------------------------------------ --------------- 欢迎联系 x.guan.ling@gmail.com--------------- ------------------------------------------------------------------------------------------------------------