exam questions

Exam 1z0-808 All Questions

View all questions & answers for the 1z0-808 exam

Exam 1z0-808 topic 1 question 181 discussion

Actual exam question from Oracle's 1z0-808
Question #: 181
Topic #: 1
[All 1z0-808 Questions]

Given:

What is the result?

  • A. A B C D
  • B. A C D
  • C. A C D D
  • D. A B C C
  • E. A B D C
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
shiv2
8 months, 1 week ago
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
upvoted 1 times
...
shiv2
8 months, 1 week ago
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
upvoted 1 times
...
DriftKing
9 months, 3 weeks ago
Selected Answer: A
A. A B C D
upvoted 1 times
...
pbbvr
10 months, 3 weeks ago
ABCC is the correct!
upvoted 1 times
...
Ericausdresden
11 months, 1 week ago
i don´t think the right answer is given here...i go for ACCD
upvoted 2 times
FollowingJesus
1 week, 6 days ago
if my understanding is correct, ta.replace is not assigning it back to ta. Strings are immutable, meaning they cannot be changed like that. you need the line to say ta=ta.replace. Anyone can correct if wrong. God bless.
upvoted 1 times
...
...
carloswork
1 year, 8 months ago
Selected Answer: 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); }
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...