Question d’entretien chez Bolt

What does the synchronized keyword do

Réponse à la question d'entretien

Utilisateur anonyme

24 mai 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)