Not correctly synchronized,
June 15, 2009 at 9:10 AM
In this example, programmer is actually creating two different instances of Share class !!...Although we get the output most of the time as given here,code is not properly synchronized.He should have written synchronized(Share.class) instead of synchronized(this).
View All Comments
| View Tutorial