Science, asked by Muski6931, 1 year ago

What is use for synchronization in Java?

Answers

Answered by shereef4me
0

The Java synchronized keyword is an essential tool in concurrent programming in Java. Its overall purpose is to only allow one thread at a time into a particular section of code thus allowing us to protect, for example, variables or data from being corrupted by simultaneous modifications from different threads.


shereef4me: plz mark as brainliest
Answered by Aneelmalhi
0
The Java synchronized keyword is an essential tool in concurrentprogramming in Java. Its overall purpose is to only allow one thread at a time into a particular section of code thus allowing us to protect, for example, variables or data from being corrupted by simultaneous modifications from different threads.
Similar questions