What does this java code means? Will it gain locks on all objects of 'MyClass'
synchronized(MyClass.class) {
//is all objects of MyClass are thread-safe now ??
}
And how the above code different from this one:
synchronized(this) {
//is all objects of MyClass are thread-safe now ??
}