How many String objects are created by the following code?
String x = new String(\"xyz\"); String y = \"abc\"; x = x + y;
I have visited ma
The answer is 4
String x = new String("xyz");//First Object String y = "abc";//Second Object x = x + y;//Third, fourth Object