Pergunta de entrevista da empresa Infogain

what is the difference in string and stringbuffer

Respostas da entrevista

Sigiloso

29 de jul. de 2017

String is immutable mean memory allocated whenever new string appended where as in stringbuilder memory allocated to one time.

3

Sigiloso

3 de jun. de 2019

String is immutable while stringbuffer is mutable means you can modify a stringbuffer object once you can create Ed it with out creating any new object

Sigiloso

29 de jul. de 2017

String is immutable mean memory allocated only onl time where as in stringbuilder memory

5