InterviewSolution
Saved Bookmarks
| 1. |
What's The Advantage Of Using System.text.stringbuilder Over System.string? |
|
Answer» StringBuilder is more EFFICIENT in the cases, where a LOT of manipulation is DONE to the text. Strings are im MUTABLE, so each time it’s being operated on, a new instance is CREATED. StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text. Strings are im mutable, so each time it’s being operated on, a new instance is created. |
|