Agile Actors Interview Question

What does the 'synchronized' keyword do in Java?