12
The lock is part of the Object. Every Object has one and it may be locked in two ways:
synchronized modifier on an instance method of the Class to lock the associated objectsynchronized(object) {} blockSimilarly, you can lock the Class of an Object instead of the Object itself (bares mentioning separately to understand the synchronized modifier with a static method):
synchronized modifier on a static method of the Class to lock the Classsynchronized(clazz) {} block where clazz is the Class of the Object