Select from following answers:- When building a string from shorter strings.

- When working with text data longer than 256 bytes.
- When you want to search and replace the contents of a string.
- When a string is a value type.
- All Above
Using the String type to construct a dynamic string can result in a lot of temporary strings in memory because the String type is immutable. Therefore, using the StringBuilder class is preferable.
Show Correct Answer
Source: MCTS Book | Asked In: Many Interviews |
Alert Moderator