String x = new String("xyz");
String y = "abc";
x = x + y;
How many String
objects would get created in this code?
There will be at least four objects:
"xyz"
"xyz"
string"abc"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With