Synchronizing using method local variables versus the current instance “this”

There was one query which came up on Javaranch– it was related to difference between using synchronized block with a method local variable and current instance “this”. I thought that this would better be explained with a code and I came up with the following example code-

Read more