Question: What are the differences and usage scenarios of String, StringBuffer, and StringBuilder?
answer:
When the variable is used as a shared variable, it is multi-threaded and the result is correct. Use stringbuffer
Question: What are the differences and usage scenarios of String, StringBuffer, and StringBuilder?
answer:
When the variable is used as a shared variable, it is multi-threaded and the result is correct. Use stringbuffer