roots 可达性分析,从roots能可达的对象一定不会被垃圾回收吗

不一定,如弱 虚引用,在垃圾回收的时候可能就会被回收掉

posted @ 2020-07-29 11:29  清明雨下  阅读(176)  评论(0)    收藏  举报