Networks

Casual Mode - Take your time!

1 / 15
Correct
0
Incorrect
0
Score
0%
Multiple Choice

Which of the following methods is used to pre-allocate a space for a certain number of characters, after a StringBuffer has been constructed?

  1. setLength()
  2. length()
  3. capacity()
  4. startWith()
  5. ensureCapacity()
Change Mode