What will be the output of the program? string x = "xyz"; x.touppercase(); /* line 2 */ string y = x.replace('y', 'y'); y = y + "abc"; system.out.println(y);
a. abcxyz
b. abcxyz
c. xyzabc
d. xyzabc?
Answers
Answered by
1
The output is xyzabc
Similar questions
Math,
8 months ago
Physics,
8 months ago
Math,
8 months ago
Computer Science,
1 year ago
Hindi,
1 year ago