D
Dom
Anyone have some time to answer simple String questions?
1. Why is there a String (String) constructor? Is there any
difference between these statements:
a) -- String s = new String ("ABC");
b) -- String s = "ABC";
2. Why is there a concat method? Is there any difference between
these statements:
a) -- s = s.concat ("ABC");
b) -- s = s + "ABC";
TIA,
Dom
1. Why is there a String (String) constructor? Is there any
difference between these statements:
a) -- String s = new String ("ABC");
b) -- String s = "ABC";
2. Why is there a concat method? Is there any difference between
these statements:
a) -- s = s.concat ("ABC");
b) -- s = s + "ABC";
TIA,
Dom