Tech Mahindra interview question

Q: What is difference between StringBuilder and StringBuffer?

Interview Answer

Anonymous

Jun 6, 2024

Two class have same operations , but StringBuffer is thread safe and used for Thread safety .While StringBuilder doesn't provides Thread safety