nerdexam
Oracle

1Z0-829 · Question #5

1Z0-829 Question #5: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-829 to reveal the answer and full explanation for question #5. The question stem and answer options stay visible for context.

Question

Given the code fragment: String myStr = "Hello Java 17"; String myTextBlk1 = """ Hello Java 17"""; String myTextBlk2 = """ Hello Java 17 """; System.out.print(myStr.equals(myTextBlk1)+":"); System.out.print(myStr.equals(myTextBlk2)+":"); System.out.print(myTextBlk1.equals(myTextBlk2)+":"); System.out.println(myTextBlk1.intern() == myTextBlk2.intern());

Options

  • ATrue:false:true:true
  • BTrue:true:false:false
  • CTrue:false:true:false
  • DTrue:false:false:false

Unlock 1Z0-829 to see the answer

You've previewed enough free 1Z0-829 questions. Unlock 1Z0-829 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 1Z0-829 Practice