String and toString() - Is it will reduce the Performance Issue?

Hi All,

I am having a String. for example

String s="................" a very large string. it may be huge size.

Now i am doing s.toString() some where. Will s.toString() creates a new string or just return what it had. will this is a performance problem.

Please kindly clarify my doubt.

Thanks,

J.Kathir

[347 byte] By [jkathira] at [2007-10-3 0:54:26]
# 1
It's will not create a new object. Btw. Why don't you check the source for String.toString() The source code is included in src.zip in your installation directory.Kaj
kajbja at 2007-7-14 17:49:46 > top of Java-index,Java Essentials,Java Programming...
# 2
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#toString()
mlka at 2007-7-14 17:49:46 > top of Java-index,Java Essentials,Java Programming...