Which of these classes is used to create an object whose character sequence is mutable?

Trang Mắm

New member
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: b
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.
 

Tìm kiếm

Back
Top