The keyword synchronized entitled to the method or block is used to prevent it from being accessed simultaneously and save the state of an object from being corrupted.
The keyword synchronized entitled to the method or block is used to prevent it from being accessed simultaneously and save the state of an object from being corrupted.The keyword synchronized entitled to the method or block is used to prevent it from being accessed simultaneously and save the state of an object from being corrupted. There are two ways to implement the keyword synchronized:
Read more at:
http:/www.roseindia.net/java/thread/synchronization.shtml
Ads