Java軟引用&弱引用使用示例代碼

1、示例代碼 public class ReferencesObjs { static class M2Object { byte[] m2 = new byte[2 * 1024 * 1024]; } public static void main(String[] args) throws Exception { M2Object o = new M2Object();
相關文章
相關標籤/搜索