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 No method in the String class can change the content of the string. String is an immutable class.
You might also like to view...
A DatePicker object allows a user to select multiple dates from a calendar of dates.
Answer the following statement true (T) or false (F)
What, in the context of pipelined processors, is a bubble and why is it detrimental to the performance of a pipelined processor?
What will be an ideal response?
The expression that is evaluated at the start of a switch statement must not be which primitive data type below?
a) byte b) short c) int d) char e) double
A ________ is displayed to the left of the paragraph indicating that the heading paragraph and the paragraph that follows will be displayed together on the same page, if possible
A) small circular symbol B) black square C) plus sign D) check mark