Java中初始化String主要有两种方式:字面量赋值(推荐):Stringstr="hello";new关键字创建:Stringstr=newString("hello");这两种方式在底层机制和内存使用上有根本区别...