Computer Science, asked by windwhirl, 8 months ago

what is default capacity and default length of StringBuffer in JAVA​

Answers

Answered by rahmanbinjaffar
1

Answer:

The capacity refers to the total amount of characters storage size in string buffer. An empty StringBuffer class contains the default 16 character capacity. If the number of the character increases from its current capacity, it increases the capacity by (oldcapacity*2)+2 .

Explanation:

Mark as Brainliest : )

Similar questions