jvm静态对象实例在放法区还是堆中( 二 )


■网友
啥?static reference field?堆上。
■网友
Static variable are stored in PremGen(method area) space in memory, their values are stored in Heap
Where are static methods and static variables stored in Java? 【jvm静态对象实例在放法区还是堆中】

■网友
静态属性是保存在类中的,所以肯定在类的存储空间


推荐阅读