What is the output of the following code?
```
String s = "University";
s.replace("i", "ABC");
System.out.println(s);
```
a. UnABCversity
b. UnABCversABCty
c. UniversABCty
d. University
d. University
No method in the String class can change the content of the string. String is an immutable class.
You might also like to view...
Which of the following media attribute values is NOT supported by most browsers?
A. print B. screen C. all D. handheld
A table array for a lookup function is the range that contains the lookup table
Indicate whether the statement is true or false
Which of the following statements draws the string "Love to animate!" starting at coordinates (200, 50)?
a. Text myText = new myText(200, 50, "Love to animate!"); b. Text myText = new Text(50.0, 200.0, "Love to animate!"); c. Text myWords = new Text(200.0, 50.0, "Love to animate!"); d. Text Words = new Words(200, 50, "Love to animate!");
/* this is a comment */ is not a valid C++ comment.
Answer the following statement true (T) or false (F)