1、对String str = “hello”,会自动入池; 2、对String str = new String("hello"),对new的强制开辟新的堆内存空间,不会自动入池; 3、new可使用intern()方法手动入池