Which of the following statements is true?
A) The capacity of a StringBuilder is equal to its length.
B) The capacity of a StringBuilder cannot exceed its length.
C) The length of a StringBuilder cannot exceed its capacity.
D) Both a and b are true.
Correct Answer:
Verified
Q12: To find the character at a certain
Q13: Consider the statements below:
StringBuilder sb =
Q14: Given the following declaration:
StringBuilder buf =
Q15: StringBuilder objects can be used in place
Q16: The statement
s1.startsWith("art")
Has the same result as
Q18: String objects are immutable. This means they
Q19: Given the following declarations:
StringBuilder buffer =
Q20: Which of the following creates the string
Q21: Which of the following statements is true?
A)
Q22: Consider the Java segment:
String line1 =
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents