Leidos Interview Question

What does the synchronized keyword in java do?

Interview Answer

Anonymous

Apr 20, 2019

creates a block of code in which only one thread will be able to execute at any given time.

1