1.

What will be the output of the program? How many String objects have been created?

Answer» Line 1 creates two, one referred to by x and the lost String "xyz". Line 2 creates one (for a total of three). Line 3 creates one more (for a total of four), the concatenated String referred to by x with a value of "xyzabc".


Discussion

No Comment Found