Solved

Given the Following Declarations

Question 11

Multiple Choice

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents