A synchronized method uses the instance as the lock object.
A static synchronized method uses the class as the lock object.
In both cases, synchronized methods prevent other calls to similarly (instance or static) synchronized methods from being made simultaneously by different threads.
Non synchronized code will not be affected.