Java theorytheory 0/50 · 0%
Threads · medium

25. Synchronized Keyword

Mutual exclusion.

Synchronized prevents multiple threads from entering a critical section of code for the same object.

Check your understanding

  1. 1. What does it lock on?

  2. 2. Static synchronized locks on...?