When do you use StringBuilder?

Asked 2 years ago, Updated 2 years ago, 64 views

I don't know the difference between String and String Builder. Please explain the difference between the two.

string performance java

2022-09-21 16:08

1 Answers

1-1. Features

2-1. Features

1 ** Principles of String Class** If the Stringa value is continuously added, a new String class is created. 2 Principle of StringBuffer or StringBuilder The value is added while increasing the size of the existing object without creating a new object. http://egloos.zum.com/top2blue/v/5148222


2022-09-21 16:08

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.