TD Interview Question

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

Interview Answer

Anonymous

Jun 20, 2011

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