Multiple Choice
Consider the String below:
String r = "a toyota";
Which of the following will create the String r1 = "a TOYOTa"?
A) String r1 = r.replace("toyot",TOYOT") ;
B) String r1 = r.replace('t','T') ;
R1 = r.replace('o','0') ;
R1 = r.replace('y','Y') ;
C) String r1 = r.replace('t','T') .replace('o','0') .replace('y','Y') ;
D) String r1 = r.substring(2,4) .toUpperCase() ;
Correct Answer:

Verified
Correct Answer:
Verified
Q2: Given the following declarations: <br>StringBuilder buf;<br>StringBuilder buf2
Q13: Consider the statements below: <br>StringBuilder sb =
Q18: Given the following declarations: <br>StringBuilder buffer =
Q19: Which of the following is not a
Q20: The statement<br>S1)equalsIgnoreCase(s4)<br>Is equivalent to which of the
Q20: Which of the following statements is true?<br>A)
Q21: The statement<br>S1)startsWith("art")<br>Has the same result as which
Q23: A String constructor cannot be passed _.<br>A)char
Q26: String objects are immutable. This means they
Q26: An anonymous String _.<br>A)has no value<br>B)is a