Pergunta de entrevista da empresa TD

What does the synchronized keyword do, and what can be synchronized?

Resposta da entrevista

Sigiloso

20 de jun. de 2011

Prevents multiple threads from simultaneously accessing the synchronized thing. Objects, methods, blocks of code.