Guys, For the following class
class TestClass
{
StringBuilder strBuilder = new StringBuilder()
public void appendString(
String str)
{
strBuilder.append(str);
}
}
Does changing StringBuilder to StringBuffer enough to make the class
Thread Safe? Or do I need to make the method synchronized to make it thread safe?