Pregunta de entrevista de LightMetrics

where to use synchronized keyword in java and why?