Cognizant interview question

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