String is an immutable object. StringBuffer is a mutable object.
Can you answer this question?
Write Answer1 Answers