|
最初由 RobinOuyang 发布
[B]To cazyIT. What is the difference between the following?
String wgf="asdfg";
String gfw=new String("asdfg" ;
Why didn't you tell us? I do not think they have much difference.
Please, thanks. [/B]
两种定义字符串变量的方式,应该没有什么不同
new 的作用在于新创建一个对象实例 |
|