Pergunta de entrevista da empresa Tata Consultancy Services

when to use string and stringbuffer? what are the advantages of it