Friends, what is the difference between the following synchronized blocks:(consider there exist a class A) synchronized(new A()) & synchronized(A.class) Any Idea? Thanks for your reply.Hari V
The first does nothing :P In general terms th first is synchronizing on an instance of A while the second is synchronizing on the single shared A.class matfud