Solved

Given the Following Declarations

Question 19

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:

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