String str = "hello world";
Scanner sc = new Scanner();
SoftReference<String> str = new SoftRenference<String>(new String("hello world"));
WeakReference<String> str = new WeakReference<String>(new String("hello world");
PhantomReference<String> str = new PhantomReference<String>("hello world");
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |