Can anyone give example how StringBuffer is synchronized .. an example programme that explains this difference . Thanks in advance