Which class provides a mutable string alternative in Java?
- StringTokenizer
- StringComponent
- StringReference
- StringBuilder
Show answer and solution
Correct answer: D. StringBuilder
StringBuilder provides an unsynchronized, mutable alternative to the String class.