Multiple choice

The constructor StringBuffer() of a StringBuffer class creates a string buffer with the capacity of ________ characters by default.

  1. 8

  2. 16

  3. 32

  4. 64

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The constructor StringBuffer() of a StringBuffer class creates a StringBuffer with the capacity of 16 characters by default.