提问关于回收机制
请大家帮忙判断一下,有能力的话详细说明一下,我谢谢大家了ture or false
A. Memory is reclaimed by calling Runtime.gc().
B. Objects are not collected if they are accessible from live threads.
C. Objects that have finalize() methods are never garbage collected.
D. Objects that have finalize() methods always have their finalize() methods called before the programe ends.
E. An OutOfMemory error is only thrown if a single block of memory cannot be found that is large enough for a particular requirement.
----------------解决方案--------------------------------------------------------
又是判断题,晕,
F (执行单个Runtime.gc()方法并不能保证有效的请求垃圾收集)
T 看垃圾回收的定义
F
F
F
----------------解决方案--------------------------------------------------------
哎呀吗呀!咋都是鹰蚊啊?
俺也看不出个个数啊!
我都开始学日本蚊了啊!
----------------解决方案--------------------------------------------------------