Exam 1z0-808 All QuestionsBrowse all questions from this exam
Question 180

Given:

What is the result?

    Correct Answer: A

    A

Discussion
Ericausdresden

i don´t think the right answer is given here...i go for ACCD

carlosworkOption: A

Correct, Answer is A. To test: public static void main(String[] args) { String ta = "A "; ta = ta.concat("B "); String tb = "C "; ta = ta.concat(tb); ta.replace("B" ,"C"); ta = ta.concat("D"); System.out.println(ta); }

shiv2Option: A

public class Test { public static void main(String[] args) { String ta = "A "; System.out.println(ta); ta = ta.concat("B "); System.out.println(ta); String tb = "C "; ta = ta.concat(tb); System.out.println(ta); ta.replace("B" ,"C"); System.out.println(ta); ta = ta.concat("D"); System.out.println(ta); } try this if wanna understand more on this

shiv2Option: A

public class Test { public static void main(String[] args) { String ta = "A "; System.out.println(ta); ta = ta.concat("B "); System.out.println(ta); String tb = "C "; ta = ta.concat(tb); System.out.println(ta); ta.replace("B" ,"C"); System.out.println(ta); ta = ta.concat("D"); System.out.println(ta); } try this if wanna understand more on this

Drift_KingOption: A

A. A B C D

pbbvrOption: D

ABCC is the correct!