摘要:
public class WeakReference extends Reference { public WeakReference(T referent) { super(referent); } public WeakReference(T referent, ReferenceQueue q) { super(r... 阅读全文
摘要:
阅读全文
摘要:
public class ddd { public static void main(String[] args) { ServiceLoader1 sl = ServiceLoader1.load(Hello.class);//传进去了Hello.class和线程上下文类加载器。 for(Hello h : sl) {//调用sl的ite... 阅读全文