Developer Test

Question 1 of 1

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

Select one of the following:

  • abcXyZ

  • abcxyz

  • xyzabc

  • XyZabc

Icon_fullscreen

Developer Test

Ankit Sharma9738
Quiz by , created about 1 year ago

developer test

Eye 13
Pin 0
Balloon-left 0
Tags
Ankit Sharma9738
Created by Ankit Sharma9738 about 1 year ago
Close