This question is quite similar to the one I posted here:
https://coderanch.com/t/257971/java-programmer-SCJP/certification/JQ-Mock-Threads-ID Tried to compile and run the code to understand the concepts but I got even more confused as the results seem to contradict my thoughts.
I tried running the code and it shows this (below) which really doesn't agree with the explanation given (above). The synchronized method does seem to work.:
[ August 08, 2006: Message edited by: Shanel Jacob ]