Given the following declarations:
StringBuilder buf;
StringBuilder buf2 = new StringBuilder() ;
String c = new String("test") ;
Which of the following is not a valid StringBuilder constructor?
A) buf = new StringBuilder() ;
B) buf = new StringBuilder(buf2, 32) ;
C) buf = new StringBuilder(32) ;
D) buf = new StringBuilder(c) ;
Correct Answer:
Verified
Q6: How many String objects are instantiated by
Q7: Which of the following is not a
Q8: The statement
s1.equalsIgnoreCase(s4)
Is equivalent to which of
Q9: The length of a string can be
Q10: Consider the statement below:
StringBuilder sb1 =
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
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