What could be the understanding of the following?
I have gone through thisthis post at SO but still at a loss to assemble it.
code1:
synchronized(this){ // some code } code2:
Object lock = new Object(); synchronized(lock){ // some code } Any tutorial, or some links to explain synchronized like they explain it to a child?