Topic: String x = new String("xyz");创建了几个String Object?

  Print this page

1.String x = new String("xyz");创建了几个String Object? Copy to clipboard
Posted by: manyhope
Posted on: 2006-06-21 04:27

String x = new String("xyz");创建了几个String Object?

答案是:two。 one referred to by x and the lost String “xyz”.

我不是很明白。请明白人解释一下吧。谢谢!

2.Re:String x = new String("xyz");创建了几个String Object? [Re: manyhope] Copy to clipboard
Posted by: manyhope
Posted on: 2006-06-23 09:09

这里可真冷清呀。没想到

3.Re:String x = new String("xyz");创建了几个String Object? [Re: manyhope] Copy to clipboard
Posted by: zcjl
Posted on: 2006-06-23 10:18

呵呵,不会主动搜索的人,就算别人告诉你所有的答案,你也学不到什么东西的


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923