Leave a Reply 12

Your email address will not be published. Required fields are marked *


Josh

Josh

Why wouldn’t it be E?

Tadeu

Tadeu

because this:
ta.replace(“C”, “D”);
is not this:
ta = ta.replace(“C”, “D”);

MOHAMED ELSAYED

MOHAMED ELSAYED

C

mrtsilva

mrtsilva

Correct Answer is C.
The ta.replace(‘C’, ‘D’) operation is not changing the value of the ta variable. That’s why C is concat twice.

TC

TC

C is the right answer

Rasputyn

Rasputyn

ta.replace(‘C’,’D’) return a new String but it is not assigned to ta

Javier Miranda

Javier Miranda

C, revisa el metodo replace

bella

bella

I also get C as the answer when running this code. TestKing says the answer is D – ABD. Did TestKing mark it as the wrong answer intentionally…

Tomas

Tomas

Answer: C
ta = A B C C

Vendetta

Vendetta

Did exam MAY 17, 2017…This question was seen

Answer: C