Synchronize is used to make an object and/or a functional sequence thread safe. By itself it does not make something thread safe.
So the point is to make something thread safe not just to synchronize it.
You can either sychronize a method like so....
public synchronized void doit()
{
...
}
Or you synchronize on an object (where 'Object' below is solely as an example, any object can be used)...
Object lockObject = new Object();
public void doit()
{
sychronized (lockObject)
{
....
}
}