Bolt interview question

What does the synchronized keyword do

Interview Answer

Anonymous

24 May 2019

I described using the monitor to lock, blocking other invocations of sync methods under the same object (monitor) until the lock is released and all threads could see the same values (they didn't seem to like this answer)