Solved

Given the Following Declarations

Question 18

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