nerdexam
Oracle

1Z0-809 · Question #182

Given the code fragment: public static void main(String[] args) { String ta = "A"; ta.concat("B"); String tb = "C"; ta.concat(tb); ta.replace('C', 'D'); ta.concat(tb); System.out.println(ta); } What…

The correct answer is D. A B C C. You've hit your session limit · resets 10:20pm (America/New_York)

Question

Given the code fragment: public static void main(String[] args) { String ta = "A"; ta.concat("B"); String tb = "C"; ta.concat(tb); ta.replace('C', 'D'); ta.concat(tb); System.out.println(ta); } What is the result?

Options

  • AA C D
  • BA B D
  • CA B D C
  • DA B C C
  • EA B C D

How the community answered

(36 responses)
  • A
    6% (2)
  • B
    3% (1)
  • C
    8% (3)
  • D
    83% (30)

Explanation

You've hit your session limit · resets 10:20pm (America/New_York)

Community Discussion

No community discussion yet for this question.

Full 1Z0-809 Practice