04 2022 档案
摘要:1. Object的方法,9大方法 public final native Class<?> getClass(); 返回 运行时对象的类别 public native int hashCode(); 返回 这个对象的一个 hash code public boolean equals(Object
阅读全文
摘要:Java中一共有4种引用类型,分别为: 强引用 软引用 弱引用 虚引用 1. 强引用 M m = new M(); m = null; System.gc(); 这个m指向M()内存对象的引用就是一个强引用。 2. 软引用 SoftReference<byte[]> m = new SoftRefe
阅读全文