String str = new String("Hello"); 的内存分配

来源:互联网 发布:视频教学软件 编辑:程序博客网 时间:2024/05/16 08:10

开辟了两个内存,所以直接 String str = "hello";更有意义。

0 0
原创粉丝点击