Default capacity of StringBuilder

后端 未结 8 1346
野性不改
野性不改 2020-12-16 09:42

What is the default capacity of a StringBuilder?

And when should (or shouldn\'t) the default be used?

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-16 10:16

    Default capacity of a String-Builder is 16 characters , And Max capacity of String-Builder is 2147483647 characters.

    So no need to worry for storing long response !!!

提交回复
热议问题