本文介绍了哪个类,方法及其成员存储在内存中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我毫不怀疑哪个类,它的方法(静态和非静态),实例变量和引用变量都存储在内存中(Heap,Premanent Generation in Heap,stack)。 我所知道的是类,方法(静态和非静态),静态变量是永久生成堆中的存储。实例变量和对象存储在Heap中。方法局部变量和参数存储在Stack中。 如果我遗漏了某些东西,请纠正我! 谢谢! 解决方案这是一个与JVM有关的问题,在这里我有一篇很好的文章来解释它,让我们一起研究: 图片来源: 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 blogImage source: http://blog.jamesdbloom.com/images_2013_11_17_17_56/JVM_Internal_Architecture_small.png 这篇关于哪个类,方法及其成员存储在内存中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-20 09:15
查看更多