MCQOPTIONS
Saved Bookmarks
| 1. |
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 |
| Answer» D. XyZabc | |