String、StringBuilder、StringBuffer

String is the most used string, so the questions about it are also asked the most in the interview, as well as StringBuilder, StringBuffer

Big companies like to ask about the basics. I think StringBuilder and StringBuffer must have been created to make up for the insufficiency of String. There must be something more powerful, or else what are they doing?

Do you think that if you use them in the right place in development, whether for performance optimization or whatever, it will make people feel like you are very good, obviously yes

So it's no wonder that many companies will ask this, let's study it below

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325910763&siteId=291194637