`

JAVA 知识补漏 -- 面试篇

 
阅读更多

1. Java有个东西叫垃圾收集器,它让创建的对象不需要像c/cpp那样delete、free掉,你能不能谈谈,GC是在什么时候,对什么东西,做了什么事情?

 

GC执行时刻由系统决定的”、“超出作用域的对象”、“收集内存、执行finalize”

 

 

分享到:
评论
14 楼 vb2005xu 2011-10-26  
http://www.bouncycastle.org/latest_releases.html

This is the prelude to a major release. As such there have been a few changes that are not directly backwards compatible with previous ones. In the way of new features, this release adds client side SSL support to the TLS API, support for CMP (RFC 4210), CRMF (RFC 4211) and CMS TimeStampedData (RFC 5544). In addition the CMS/TSP APIs have been rewritten to make it possible to use APIs other than the JCE to provide support for cryptographic operations. A new API in org.bouncycastle.cert.ocsp has been added to OCSP requests to be handled in a similar fashion. A new API has been added for providing generalised support for PEM data, and AES-CMAC and DES-edeCMAC have been added to the JCE provider and a X500Name class with pluggable "styles" has been added to provide better customisation. By way of bug fixes, further work has been done on trying to eliminate escaping exceptions and possible out of memory issues in the ASN.1 library, and BC generated X.509 certificates should now generate the same hashCodes as other implementations.
13 楼 xiaguangme 2011-02-26  
IcyFenix 写道
…………
好面熟……


IcyFenix 不是发过一篇讨论的很详细的嘛
12 楼 husy394 2011-02-25  
上大学的时候看过,后来在实际应用中没有考虑过这玩样,gcc应该是在系统不繁忙或者系统资源紧张的时候会对弱应用对象进行回收吧,实现方式,不同虚拟机应该有所区别,记得有一种实现方式就是采用一个引用计数器的方式,如果对象的引用计数器是零,则可以回收
11 楼 qiushily2030 2011-02-25  
面试官在考你 读过JAVA虚拟机这本书没 哈哈
10 楼 kala888 2011-02-25  
lucane 写道
Java new出来的对象一定会是在Heap里面吗?


会,对象存在heap里
9 楼 zk7019311 2011-02-25  
还真没有好好想过
8 楼 lucane 2011-02-25  
Java new出来的对象一定会是在Heap里面吗?
7 楼 月落码农 2011-02-25  
javantsky 写道
软引用,弱引用又如何?

问问你的面试官,O(∩_∩)O哈哈~,估计TA也会一头包吧


是吗? 你确定所有面试官都会一头包,再说了你如果来应聘SE,别人问GC这就有点过了!
6 楼 javantsky 2011-02-25  
软引用,弱引用又如何?

问问你的面试官,O(∩_∩)O哈哈~,估计TA也会一头包吧
5 楼 tracyhuyan 2011-02-25  
“超出作用域的对象”  ----》用有向图判断、分代
4 楼 逍遥虎 2011-02-25  
忽悠面试官呢?
3 楼 lx_corn 2011-02-25  
骗分的。。
2 楼 liuningbo 2011-02-25  
[quote="vb2005xu"]
1. Java有个东西叫垃圾收集器,它让创建的对象不需要像c/cpp那样delete、free掉,你能不能谈谈,GC是在什么时候,对什么东西,做了什么事情?


GC执行时刻由系统决定的”、“超出作用域的对象”、“收集内存、执行finalize”




回答太肤浅了点吧?
1 楼 IcyFenix 2011-02-25  
…………
好面熟……

相关推荐

Global site tag (gtag.js) - Google Analytics