J
Jerry
Anyone knows the differences between synchronized block and synchronized method?
Thanks!
Thanks!
Anyone knows the differences between synchronized block and synchronized method?
Yep.
Thanks!
Anyone knows the differences between synchronized block and synchronized method?
nicemothi said:Synchronized methods are used when we are sure all instance will work on the same set of data through the same function Synchronized block is used when we use code which we cannot modify ourselves like third party jars etc
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.