I think I miss understand the use of synchronized block after I saw the following example(from J2SE 1.5 Docs),
I think an object is
thread safe in the synchronized block that declared as synchronized(object), but after I saw the example, I think I am wrong!
Because if I am right, then we no need to call Collections.synchronizedCollection(myCollection), I think the following code is correct before I read the example I mentioned,
Why we need call Collections.synchronizedCollection() with myCollection even we define the synchronized block?
I holp you understand what I means with my poor english!
thanks!