P
Piper707
Hi,
I've always read that strings should be created like this:
String test = "hello" rather than String test = new String ("test").
I understand why this is recommended and the concept of string pools,
but now I can't seem to understand why anybody would want to use the
constructor? why is it provided in the first place?
Thanks
Rohit
I've always read that strings should be created like this:
String test = "hello" rather than String test = new String ("test").
I understand why this is recommended and the concept of string pools,
but now I can't seem to understand why anybody would want to use the
constructor? why is it provided in the first place?
Thanks
Rohit