Multiple Choice
Given the following declarations:
StringBuilder buffer = new StringBuilder("Testing Testing") ;
Buffer.setLength(7) ;
Buffer.ensureCapacity(5) ;
Which of the following is true?
A) buffer has capacity 5.
B) buffer has capacity 31.
C) buffer has content "Testin".
D) buffer has length 15.
Correct Answer:

Verified
Correct Answer:
Verified
Q13: Consider the statements below: <br>StringBuilder sb =
Q14: An anonymous String _.<br>A) has no value<br>B)
Q15: Consider the Java segment: <br>String line1 =
Q16: To find the character at a certain
Q17: StringBuilder objects can be used in place
Q19: Which of the following is not a
Q20: Which of the following statements is true?<br>A)
Q21: How many String objects are instantiated by
Q22: Consider the Java segment: <br>String line1 =
Q23: Which of the following creates the string