Which of the following is true?

Given the following declarations:
```
StringBuilder buffer = new StringBuilder(“Testing Testing”);
buffer.setLength(7);
buffer.ensureCapacity(5);
```

a. buffer has capacity 5.
b. buffer has capacity 31.
c. buffer has content “Testin”.
d. buffer has length 15.


b. buffer has capacity 31.

Computer Science & Information Technology

You might also like to view...

Which function will return the total number of periods on a $20000 loan at 5% interest and a $600 payment?

A) RATE B) NPER C) IPMT D) PPMT

Computer Science & Information Technology

Macros can be used to spread malware that can harm your computer

Indicate whether the statement is true or false.

Computer Science & Information Technology

Three of the more popular wiki applications are MediaWiki, PBworks, and ____.

A. Google Chrome B. Google Docs C. Google Reader D. Google Sites

Computer Science & Information Technology

You can use the Trim Video feature to specify a video file's Start and End time in order to control which portion of the video file plays during a slide show.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology