Ankit Sharma9738
Quiz by , created more than 1 year ago

developer test

13
0
0
Ankit Sharma9738
Created by Ankit Sharma9738 over 8 years ago
Close

Developer Test

Question 1 of 1

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

Explanation