Home » Java Programming » Java.lang Class

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);

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!