What does the following code fragment print? String string1 = he11o; String string2 = string1; string1 =

Question:

What does the following code fragment print?

String string1 = "he11o";

String string2 = string1;

string1 = "wor1d";

StdOut.println(string1);

Std0ut.println(string2);

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: