PRACTICE / UNDERSTAND / REPEAT

Java: Concurrency

Practice concurrency with self-contained questions. Check your answer, then use the explanation to understand the reasoning.

19 questionsAnswers explainedFree · no login
Question 1 of 19
Concurrency · MCQQuestion link ↗

What does `synchronized` provide around a monitor?

Choose one answer
Answer & explanation

Answer: Mutual exclusion and memory visibility

A synchronized region is mutually exclusive for a monitor and establishes visibility guarantees.