Java String object creation
Posted
by Ajay
on Stack Overflow
See other posts from Stack Overflow
or by Ajay
Published on 2010-06-02T08:54:51Z
Indexed on
2010/06/02
9:13 UTC
Read the original article
Hit count: 219
Hi,
1) What is difference in thers two statements:
String s1 = "abc";
and
String s1 = new String("abc")
2) as i am not using new in first statement, how string object will be created
Thanks
© Stack Overflow or respective owner