Does creating a StringBuffer testing= null;
testing = new StringBuffer("Thread Safe ");
inside a static method . Does the same reference of stringbuffer gets modified by thread every time in case multiple threads are calling the function at the same time.
public static StringBuffer test(String string) {
StringBuffer testing = null;
testing = new StringBuffer("Thread Safe ");
return testing;
}