Domanda di colloquio di Cognizant

What is synchronization? Object level lock and class level lock?