The relationship between the Spring and Springbuffer

The relationship between the Spring and Springbuffer

[https://blog.csdn.net/qq_37856300/article/details/84340288] here spoke very clearly stringbuffer some of the property, as well as stringbuffer and string, stringbulid different.
Overall:
Because String is not inherited. In the time of SPringle be referenced, it will not be directly quoted, but will create an object during the operation. This speed and memory to run are unfavorable. So for those used stringbuffer need for faster operating string
Stringbuffer tostring the method, can be converted to a string object, it can be a good alternative when making use of characters.

Published an original article · won praise 0 · Views 15

Guess you like

Origin blog.csdn.net/weixin_45739050/article/details/104610445