Multiple Choice
What will be the value of str after the following statements are executed?
StringBuilder str =
New StringBuilder("We have lived in Chicago, " +
"Trenton, and Atlanta.") ;
Str) replace(17, 24, "Tampa") ;
A) We have lived in Tampa, Trenton, and Atlanta.
B) We have lived in Chicago, Tampa, and Atlanta.
C) We have lived in Tampa Trenton, and Tampa.
D) We have lived in Tampalanta.
Correct Answer:

Verified
Correct Answer:
Verified
Q25: If a non-letter is passed to the
Q32: Each of the numeric wrapper classes has
Q52: What will be the tokens for the
Q53: You must call a method to get
Q54: When using the StringBuilder class's insert method,
Q56: StringBuilder objects are immutable.
Q57: If str is declared as: String str
Q58: In the following statement, what data type
Q59: What will be the value of matches
Q60: What does the following statement do?<br>Float number