synchronized: which monitor each form locks, and reentrancy
In one line: synchronized locks this, the Class object or the block's expression; only code on the same monitor is excluded, and monitors are reentrant.
You’ve read your 2 free 1Z0-831 lessons
Sign up free to read every lesson — your progress is saved.