Which code fragment, when inserted at line 9, enables the code to print true?

Given:


Which code fragment, when inserted at line 9, enables the code to print true?
A. String str2 = str1;
B. String str2 = new string (str1);
C. String str2 = sb1.toString();
D. String str2 = "Duke";

Download Printable PDF. VALID exam to help you PASS.

3 thoughts on “Which code fragment, when inserted at line 9, enables the code to print true?

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.