string is immutable and stringbuilder is mutable

前端 未结 8 1330
轻奢々
轻奢々 2020-12-06 08:38

can any one explain with examples


Related Discussion: Most efficient way to concatenate strings?

8条回答
  •  一个人的身影
    2020-12-06 09:31

    String is immutable ,,

    That means we cannot change the string once declared .

    String builder is mutable

    This is the variety operation can be performed.we can change string ..

提交回复
热议问题