哪个类,方法及其成员存储在内存中? [英] Where class, methods and its members are stored in memory?
问题描述
我毫不怀疑哪个类,它的方法(静态和非静态),实例变量和引用变量都存储在内存中(Heap,Premanent Generation in Heap,stack)。
我所知道的是类,方法(静态和非静态),静态变量是永久生成堆中的存储。实例变量和对象存储在Heap中。方法局部变量和参数存储在Stack中。
如果我遗漏了某些东西,请纠正我!
谢谢!
这是一个与JVM有关的问题,在这里我有一篇很好的文章来解释它,让我们一起研究:< br>
图片来源: http://blog.jamesdbloom.com/images_2013_11_17_17_56/JVM_Internal_Architecture_small.png
I have little doubt about where class, its methods(static and non-static), instance variables and reference variables are stores in memory(Heap, Premanent Generation in Heap, stack).
What i know is class, methods(static & non-static), static variable are stores in Permanent Generation in Heap. Instance variables and objects are stored in Heap. Method local variables and parameters are stored in Stack.
Correct me if i am missing something !
Thanks!
It is a question that relate to JVM, here I have a good article to explain about it, let's study together:
JVM - Jamesdbloom blog
Image source: http://blog.jamesdbloom.com/images_2013_11_17_17_56/JVM_Internal_Architecture_small.png
这篇关于哪个类,方法及其成员存储在内存中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!