Ankit Sharma9738
Quiz por , criado more than 1 year ago

developer test

13
0
0
Ankit Sharma9738
Criado por Ankit Sharma9738 mais de 8 anos atrás
Fechar

Developer Test

Questão 1 de 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);

Selecione uma das seguintes:

  • abcXyZ

  • abcxyz

  • xyzabc

  • XyZabc

Explicação