B
Bruce Sam
I think,if not use the "new" keyword,it will not create an object,only
create a reference.For example,"String str = "ab";" only create a
reference.But when I use "String str = new String("ab");",here will
create an string object and a reference str point to it.
Is it right?
create a reference.For example,"String str = "ab";" only create a
reference.But when I use "String str = new String("ab");",here will
create an string object and a reference str point to it.
Is it right?