weak,soft,phtom Reference,軟,弱,虛引用!

前面的簡介: strongReference:強引用 softReference:軟引用。 weakReference:弱引用 phtomReference:虛引用   一:strongReference String a = new String("hello world"); String b=a;  咯,這裏b就是個強引用咯。反正就是會一直指向那個String的。也就是大家最常用的。   二
相關文章
相關標籤/搜索