原始生活..? [英] lifetime of primitives..?

查看:48
本文介绍了原始生活..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始学习java

阅读思考用java

i cam over this

java对象的生命周期与原语相同

一个对象保留在内存中,即使在其范围之后,直到垃圾收集器检测到并释放内存



那么基元的生命周期是什么。 />
他们的内存将在范围之后被释放.. ??

i started learing java
reading thinking in java
i cam across this
java objects do not have same lifetime as primitives
an object retains in memory even after its scope until garbage collector detects and releases the memory

well whats the lifetime of primitives..??
their memory will be released after the scope..??

推荐答案

例如参见:在堆栈交换中使用堆栈中的堆栈和堆内存 [ ^ ]。


这篇关于原始生活..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆