Snapp (Iran) interview question

Explain java synchronized methods briefly