Pergunta de entrevista da empresa Cognizant

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