Ankit Sharma9738
Quiz von , erstellt am more than 1 year ago

developer test

13
0
0
Ankit Sharma9738
Erstellt von Ankit Sharma9738 vor mehr als 8 Jahre
Schließen

Developer Test

Frage 1 von 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);

Wähle eine der folgenden:

  • abcXyZ

  • abcxyz

  • xyzabc

  • XyZabc

Erklärung