💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
``` String sb = new String("JAVA"); ReferenceQueue rq = new ReferenceQueue(); PhantomReference<String> wrf = new PhantomReference<String>(sb, rq); sb = null; System.err.println(wrf.get()); System.gc(); System.runFinalization(); System.err.println(wrf == rq.poll()); ```