Computer Science, asked by rahulpanjwani37371, 1 year ago

What does synchronized modifier do in Java?

Answers

Answered by RBilalahmed
2

Synchronized blocks in Java are marked with the synchronized keyword. A synchronized block in Java is synchronized on some object. All synchronized blocks synchronized on the same object can only have one thread executing inside them at a time. ... When a thread acquires a lock, it is said to have entered the monitor...


RBilalahmed: please mark me as brainliest
Similar questions