Look at the following code: String str1 = To be, or not to be; String str2 =

Question:

Look at the following code: 

String str1 = "To be, or not to be";
String str2 = str1.replace('o', 'u');
System.out.println(str1);
System.out.println(str2);

You hear a fellow student claim that the code will display the following: 

Tu be ur nut tu be
Tu be ur nut tu be

Is your fellow student right or wrong? Why?

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

Step by Step Answer:

Question Posted: