InterviewSolution
Saved Bookmarks
| 1. |
Which of these classes is used to create an object whose character sequence is mutable?(a) String()(b) StringBuilder()(c) String() & StringBuilder()(d) None of the mentioned |
|
Answer» Right answer is (b) StringBuilder() Easiest explanation - Mutable strings are dynamic strings. They can grow dynamically as characters are added to them. stringbuilder class supports those methods that are useful for manipulating dynamic strings. |
|